summaryrefslogtreecommitdiff
path: root/javax/management/openmbean/OpenMBeanInfoSupport.java
diff options
context:
space:
mode:
Diffstat (limited to 'javax/management/openmbean/OpenMBeanInfoSupport.java')
-rw-r--r--javax/management/openmbean/OpenMBeanInfoSupport.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/javax/management/openmbean/OpenMBeanInfoSupport.java b/javax/management/openmbean/OpenMBeanInfoSupport.java
index 5f8d55b83..d67ff76a0 100644
--- a/javax/management/openmbean/OpenMBeanInfoSupport.java
+++ b/javax/management/openmbean/OpenMBeanInfoSupport.java
@@ -151,10 +151,10 @@ public class OpenMBeanInfoSupport
if (hashCode == null)
hashCode =
Integer.valueOf(getClassName().hashCode() +
- new HashSet(Arrays.asList(getAttributes())).hashCode() +
- new HashSet(Arrays.asList(getConstructors())).hashCode() +
- new HashSet(Arrays.asList(getNotifications())).hashCode() +
- new HashSet(Arrays.asList(getOperations())).hashCode());
+ new HashSet<MBeanAttributeInfo>(Arrays.asList(getAttributes())).hashCode() +
+ new HashSet<MBeanConstructorInfo>(Arrays.asList(getConstructors())).hashCode() +
+ new HashSet<MBeanNotificationInfo>(Arrays.asList(getNotifications())).hashCode() +
+ new HashSet<MBeanOperationInfo>(Arrays.asList(getOperations())).hashCode());
return hashCode.intValue();
}