aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/javax
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2007-02-15 13:05:06 +0000
committerGary Benson <gary@gcc.gnu.org>2007-02-15 13:05:06 +0000
commitb102a4f7e8915a66d95c104bcfa443f60f792261 (patch)
tree407852e8fd48cc77eab90cd5de90460a4776b345 /libjava/classpath/javax
parentc1a1cc5fcb4b1a9c432c706a6c98e1c0d90968bc (diff)
downloadgcc-b102a4f7e8915a66d95c104bcfa443f60f792261.zip
gcc-b102a4f7e8915a66d95c104bcfa443f60f792261.tar.gz
gcc-b102a4f7e8915a66d95c104bcfa443f60f792261.tar.bz2
2007-02-15 Gary Benson <gbenson@redhat.com>
* javax/management/ObjectName.java: (getKeyPropertyList()): Remove cast and call to UnmodifiableMap. From-SVN: r121994
Diffstat (limited to 'libjava/classpath/javax')
-rw-r--r--libjava/classpath/javax/management/ObjectName.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/libjava/classpath/javax/management/ObjectName.java b/libjava/classpath/javax/management/ObjectName.java
index 0b18c01..757b80f 100644
--- a/libjava/classpath/javax/management/ObjectName.java
+++ b/libjava/classpath/javax/management/ObjectName.java
@@ -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);
}
/**