--- old/src/share/classes/javax/management/MBeanAttributeInfo.java 2013-09-16 18:02:19.000000000 +0200 +++ new/src/share/classes/javax/management/MBeanAttributeInfo.java 2013-09-16 18:02:19.000000000 +0200 @@ -286,10 +286,10 @@ if (!(o instanceof MBeanAttributeInfo)) return false; MBeanAttributeInfo p = (MBeanAttributeInfo) o; - return (p.getName().equals(getName()) && - p.getType().equals(getType()) && - p.getDescription().equals(getDescription()) && - p.getDescriptor().equals(getDescriptor()) && + return (Objects.equals(p.getName(), getName()) && + Objects.equals(p.getType(), getType()) && + Objects.equals(p.getDescription(), getDescription()) && + Objects.equals(p.getDescriptor(), getDescriptor()) && p.isReadable() == isReadable() && p.isWritable() == isWritable() && p.isIs() == isIs());