Commit b102a4f7 by Gary Benson Committed by Gary Benson

2007-02-15 Gary Benson <gbenson@redhat.com>

	* javax/management/ObjectName.java:
	(getKeyPropertyList()): Remove cast and call
	to UnmodifiableMap.

From-SVN: r121994
parent c1a1cc5f
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> 2007-02-14 Gary Benson <gbenson@redhat.com>
* javax/management/ObjectName.java * javax/management/ObjectName.java
......
...@@ -565,16 +565,15 @@ public class ObjectName ...@@ -565,16 +565,15 @@ public class ObjectName
/** /**
* Returns the properties in a {@link java.util.Hashtable}. The table * Returns the properties in a {@link java.util.Hashtable}. The table
* contains each of the properties as keys mapped to their value. The * contains each of the properties as keys mapped to their value. The
* returned table may be unmodifiable. If the case that the table is * returned table is not unmodifiable, but changes made to it will not
* modifiable, changes made to it will not be reflected in the object * be reflected in the object name.
* name.
* *
* @return a {@link java.util.Hashtable}, containing each of the object * @return a {@link java.util.Hashtable}, containing each of the object
* name's properties. * name's properties.
*/ */
public Hashtable getKeyPropertyList() public Hashtable getKeyPropertyList()
{ {
return (Hashtable) Collections.unmodifiableMap(new Hashtable(properties)); return new Hashtable(properties);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment