2007-02-15 Gary Benson <gbenson@redhat.com>
authorGary Benson <gbenson@redhat.com>
Thu, 15 Feb 2007 13:05:06 +0000 (13:05 +0000)
committerGary Benson <gary@gcc.gnu.org>
Thu, 15 Feb 2007 13:05:06 +0000 (13:05 +0000)
* javax/management/ObjectName.java:
(getKeyPropertyList()): Remove cast and call
to UnmodifiableMap.

From-SVN: r121994

libjava/classpath/ChangeLog.gcj
libjava/classpath/javax/management/ObjectName.java
libjava/classpath/lib/javax/management/ObjectName.class

index 75c1c25b7ac803444b66648125697c48a8608479..4aac14f38ab9c6cf8e6f39113d068e2704858be6 100644 (file)
@@ -1,3 +1,9 @@
+2007-02-15  Gary Benson  <gbenson@redhat.com>
+
+       * javax/management/ObjectName.java:
+       (getKeyPropertyList()): Remove cast and call
+       to UnmodifiableMap.
+
 2007-02-14  Gary Benson  <gbenson@redhat.com>
 
        * javax/management/ObjectName.java
index 0b18c012516e79c15116520a67e68c48ab04c8f9..757b80fb266a85f380f706664de90fd00c615137 100644 (file)
@@ -565,16 +565,15 @@ public class ObjectName
   /**
    * Returns the properties in a {@link java.util.Hashtable}.  The table
    * contains each of the properties as keys mapped to their value.  The
-   * returned table may be unmodifiable.  If the case that the table is
-   * modifiable, changes made to it will not be reflected in the object
-   * name.
+   * returned table is not unmodifiable, but changes made to it will not
+   * be reflected in the object name.
    *
    * @return a {@link java.util.Hashtable}, containing each of the object
    *         name's properties.
    */
   public Hashtable getKeyPropertyList()
   {
-    return (Hashtable) Collections.unmodifiableMap(new Hashtable(properties));
+    return new Hashtable(properties);
   }
 
   /**
index 9895cbf5695064acf3e954f1b80699ac56cf5471..720f6689d434a74188173807d7bb9dde4a622799 100644 (file)
Binary files a/libjava/classpath/lib/javax/management/ObjectName.class and b/libjava/classpath/lib/javax/management/ObjectName.class differ