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:
parent
c1a1cc5fcb
commit
b102a4f7e8
3 changed files with 9 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue