src/share/classes/javax/management/MBeanNotificationInfo.java
Print this page
*** 24,33 ****
--- 24,34 ----
*/
package javax.management;
import java.util.Arrays;
+ import java.util.Objects;
/**
* <p>The <CODE>MBeanNotificationInfo</CODE> class is used to describe the
* characteristics of the different notification instances
* emitted by an MBean, for a given Java class of notification.
*** 189,201 ****
if (o == this)
return true;
if (!(o instanceof MBeanNotificationInfo))
return false;
MBeanNotificationInfo p = (MBeanNotificationInfo) o;
! return (p.getName().equals(getName()) &&
! p.getDescription().equals(getDescription()) &&
! p.getDescriptor().equals(getDescriptor()) &&
Arrays.equals(p.fastGetNotifTypes(), fastGetNotifTypes()));
}
public int hashCode() {
int hash = getName().hashCode();
--- 190,202 ----
if (o == this)
return true;
if (!(o instanceof MBeanNotificationInfo))
return false;
MBeanNotificationInfo p = (MBeanNotificationInfo) o;
! return (Objects.equals(p.getName(), getName()) &&
! Objects.equals(p.getDescription(), getDescription()) &&
! Objects.equals(p.getDescriptor(), getDescriptor()) &&
Arrays.equals(p.fastGetNotifTypes(), fastGetNotifTypes()));
}
public int hashCode() {
int hash = getName().hashCode();