summaryrefslogtreecommitdiff
path: root/libjava/classpath/javax
diff options
context:
space:
mode:
authorgary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-15 13:05:06 +0000
committergary <gary@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-15 13:05:06 +0000
commit46d44af37405293cb59ab5e7903fe4907380d3db (patch)
tree407852e8fd48cc77eab90cd5de90460a4776b345 /libjava/classpath/javax
parente6d8e73fa374cb625aa393a4a34b03bafadedbe4 (diff)
downloadgcc-46d44af37405293cb59ab5e7903fe4907380d3db.tar.gz
2007-02-15 Gary Benson <gbenson@redhat.com>
* 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
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 0b18c012516..757b80fb266 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);
}
/**