@SuppressWarnings("squid:S109") @Override public int hashCode() { final int prime = 31; int result = super.hashCode(); result = (prime * result) + ((name == null) ? 0 : name.hashCode()); result = (prime * result) + ((type == null) ? 0 : type.hashCode()); return result; } // CS:ON hashCode()
@SuppressWarnings("squid:MethodCyclomaticComplexity") @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } final LogicalNode other = (LogicalNode) obj; if (name == null) { if (other.name != null) { return false; } } else if (!name.equals(other.name)) { return false; } if (type != other.type) { return false; } return true; } // CS:ON equals(Object obj)