equal
deleted
inserted
replaced
1056 **/ |
1056 **/ |
1057 protected void cacheMBeanInfo(MBeanInfo info) { |
1057 protected void cacheMBeanInfo(MBeanInfo info) { |
1058 cachedMBeanInfo = info; |
1058 cachedMBeanInfo = info; |
1059 } |
1059 } |
1060 |
1060 |
1061 private boolean isMXBean() { |
|
1062 return mbean.isMXBean(); |
|
1063 } |
|
1064 |
|
1065 private static <T> boolean identicalArrays(T[] a, T[] b) { |
1061 private static <T> boolean identicalArrays(T[] a, T[] b) { |
1066 if (a == b) |
1062 if (a == b) |
1067 return true; |
1063 return true; |
1068 if (a == null || b == null || a.length != b.length) |
1064 if (a == null || b == null || a.length != b.length) |
1069 return false; |
1065 return false; |
1464 return false; |
1460 return false; |
1465 |
1461 |
1466 // Check for "MBeanNotificationInfo[] getNotificationInfo()" |
1462 // Check for "MBeanNotificationInfo[] getNotificationInfo()" |
1467 // method. |
1463 // method. |
1468 // |
1464 // |
1469 // This method is only taken into account for the MBeanInfo |
1465 // This method is taken into account for the MBeanInfo |
1470 // immutability checks if and only if the given subclass is |
1466 // immutability checks if and only if the given subclass is |
1471 // StandardEmitterMBean itself or can be assigned to |
1467 // StandardEmitterMBean itself or can be assigned to |
1472 // StandardEmitterMBean. |
1468 // StandardEmitterMBean. |
1473 // |
1469 // |
1474 if (StandardEmitterMBean.class.isAssignableFrom(subclass)) |
1470 if (StandardEmitterMBean.class.isAssignableFrom(subclass)) |