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>
* 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);
}
/**
......
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