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

Print this page

        

*** 189,202 **** if (o == this) return true; if (!(o instanceof MBeanConstructorInfo)) return false; MBeanConstructorInfo p = (MBeanConstructorInfo) o; ! return (p.getName().equals(getName()) && ! p.getDescription().equals(getDescription()) && Arrays.equals(p.fastGetSignature(), fastGetSignature()) && ! p.getDescriptor().equals(getDescriptor())); } /* Unlike attributes and operations, it's quite likely we'll have more than one constructor with the same name and even description, so we include the parameter array in the hashcode. --- 189,202 ---- if (o == this) return true; if (!(o instanceof MBeanConstructorInfo)) return false; MBeanConstructorInfo p = (MBeanConstructorInfo) o; ! return (Objects.equals(p.getName(), getName()) && ! Objects.equals(p.getDescription(), getDescription()) && Arrays.equals(p.fastGetSignature(), fastGetSignature()) && ! Objects.equals(p.getDescriptor(), getDescriptor())); } /* Unlike attributes and operations, it's quite likely we'll have more than one constructor with the same name and even description, so we include the parameter array in the hashcode.