src/share/classes/javax/management/MBeanOperationInfo.java

Print this page

        

*** 292,307 **** if (o == this) return true; if (!(o instanceof MBeanOperationInfo)) return false; MBeanOperationInfo p = (MBeanOperationInfo) o; ! return (p.getName().equals(getName()) && ! p.getReturnType().equals(getReturnType()) && ! p.getDescription().equals(getDescription()) && p.getImpact() == getImpact() && Arrays.equals(p.fastGetSignature(), fastGetSignature()) && ! p.getDescriptor().equals(getDescriptor())); } /* We do not include everything in the hashcode. We assume that if two operations are different they'll probably have different names or types. The penalty we pay when this assumption is --- 292,307 ---- if (o == this) return true; if (!(o instanceof MBeanOperationInfo)) return false; MBeanOperationInfo p = (MBeanOperationInfo) o; ! return (Objects.equals(p.getName(), getName()) && ! Objects.equals(p.getReturnType(), getReturnType()) && ! Objects.equals(p.getDescription(), getDescription()) && p.getImpact() == getImpact() && Arrays.equals(p.fastGetSignature(), fastGetSignature()) && ! Objects.equals(p.getDescriptor(), getDescriptor())); } /* We do not include everything in the hashcode. We assume that if two operations are different they'll probably have different names or types. The penalty we pay when this assumption is