@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Message) return false; Message other = (Message) obj; if (this.code == null) { if (other.getCode() != null) return false; } else if (!this.code.equals(other.getCode())) return false; if (this.locale == null) { if (other.getLocale() != null) return false; } else if (!this.locale.equals(other.getLocale())) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Message) return false; Message other = (Message) obj; if (this.code == null) { if (other.getCode() != null) return false; } else if (!this.code.equals(other.getCode())) return false; if (this.locale == null) { if (other.getLocale() != null) return false; } else if (!this.locale.equals(other.getLocale())) return false; return true; }