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

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

From-SVN: r121994
This commit is contained in:
Gary Benson 2007-02-15 13:05:06 +00:00 committed by Gary Benson
parent c1a1cc5fcb
commit b102a4f7e8
3 changed files with 9 additions and 4 deletions

View 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

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