2007-02-15 Gary Benson <gbenson@redhat.com>
authorgary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Feb 2007 13:05:06 +0000 (13:05 +0000)
committergary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 15 Feb 2007 13:05:06 +0000 (13:05 +0000)
* javax/management/ObjectName.java:
(getKeyPropertyList()): Remove cast and call
to UnmodifiableMap.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121994 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 75c1c25..4aac14f 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 0b18c01..757b80f 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 9895cbf..720f668 100644 (file)
Binary files a/libjava/classpath/lib/javax/management/ObjectName.class and b/libjava/classpath/lib/javax/management/ObjectName.class differ