@Test public void testEqualsCaseSensitiveOption() { final SizeOfRecordMemberViolation first = new SizeOfRecordMemberViolation(option, null); final SizeOfRecordMemberViolation second = new SizeOfRecordMemberViolation(StringUtils.swapCase(option), null); assertThat(first).isNotEqualTo(second); assertThat(second).isNotEqualTo(first); assertThat(first.hashCode()).isNotEqualTo(second.hashCode()); }
@Override public int hashCode() { return new HashCodeBuilder().append(option).append(lineNumber).toHashCode(); }
SizeOfRecordMemberViolation implements Violation { @Override public int hashCode() { return new HashCodeBuilder().append(option).append(lineNumber).toHashCode(); } }
SizeOfRecordMemberViolation implements Violation { @Override public int hashCode() { return new HashCodeBuilder().append(option).append(lineNumber).toHashCode(); } SizeOfRecordMemberViolation(final String option, final Integer lineNumber); }
SizeOfRecordMemberViolation implements Violation { @Override public int hashCode() { return new HashCodeBuilder().append(option).append(lineNumber).toHashCode(); } SizeOfRecordMemberViolation(final String option, final Integer lineNumber); @Override boolean equals(final Object obj); @Override Integer getLineNumber(); @Override String getViolationDescription(); @Override String getViolationExplanation(); @Override ViolationId getViolationId(); String getOption(); @Override int hashCode(); @Override String toString(); }
SizeOfRecordMemberViolation implements Violation { @Override public int hashCode() { return new HashCodeBuilder().append(option).append(lineNumber).toHashCode(); } SizeOfRecordMemberViolation(final String option, final Integer lineNumber); @Override boolean equals(final Object obj); @Override Integer getLineNumber(); @Override String getViolationDescription(); @Override String getViolationExplanation(); @Override ViolationId getViolationId(); String getOption(); @Override int hashCode(); @Override String toString();  }