@Test @SuppressWarnings("nls") public void testEquals() { assertEqualsContract( new CommitCherryPickConflictResolve("branch", "commit", "text"), new CommitCherryPickConflictResolve("branch", "commit", "text"), new CommitCherryPickConflictResolve("branch", "commit", "text"), new CommitCherryPickConflictResolve("branch", "commit", "text2")); }
@Override public boolean equals(Object o) { if (o == this) { return true; } else if ((o != null) && o.getClass().equals(getClass())) { CommitCherryPickConflictResolve other = (CommitCherryPickConflictResolve) o; return new EqualsBuilder() .append(targetBranch, other.targetBranch) .append(commit, other.commit) .append(text, other.text) .isEquals(); } return false; }
CommitCherryPickConflictResolve { @Override public boolean equals(Object o) { if (o == this) { return true; } else if ((o != null) && o.getClass().equals(getClass())) { CommitCherryPickConflictResolve other = (CommitCherryPickConflictResolve) o; return new EqualsBuilder() .append(targetBranch, other.targetBranch) .append(commit, other.commit) .append(text, other.text) .isEquals(); } return false; } }
CommitCherryPickConflictResolve { @Override public boolean equals(Object o) { if (o == this) { return true; } else if ((o != null) && o.getClass().equals(getClass())) { CommitCherryPickConflictResolve other = (CommitCherryPickConflictResolve) o; return new EqualsBuilder() .append(targetBranch, other.targetBranch) .append(commit, other.commit) .append(text, other.text) .isEquals(); } return false; } CommitCherryPickConflictResolve(String targetBranch, String commit, String text); }
CommitCherryPickConflictResolve { @Override public boolean equals(Object o) { if (o == this) { return true; } else if ((o != null) && o.getClass().equals(getClass())) { CommitCherryPickConflictResolve other = (CommitCherryPickConflictResolve) o; return new EqualsBuilder() .append(targetBranch, other.targetBranch) .append(commit, other.commit) .append(text, other.text) .isEquals(); } return false; } CommitCherryPickConflictResolve(String targetBranch, String commit, String text); @Override boolean equals(Object o); @Override int hashCode(); }
CommitCherryPickConflictResolve { @Override public boolean equals(Object o) { if (o == this) { return true; } else if ((o != null) && o.getClass().equals(getClass())) { CommitCherryPickConflictResolve other = (CommitCherryPickConflictResolve) o; return new EqualsBuilder() .append(targetBranch, other.targetBranch) .append(commit, other.commit) .append(text, other.text) .isEquals(); } return false; } CommitCherryPickConflictResolve(String targetBranch, String commit, String text); @Override boolean equals(Object o); @Override int hashCode();  }