Skip to content

Commit

Permalink
Added missing hashCode
Browse files Browse the repository at this point in the history
  • Loading branch information
cer committed Jan 14, 2019
1 parent 47a99c3 commit 35db60c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ plugins {
subprojects {

apply plugin: "java"
apply plugin: 'pmd'

sourceCompatibility = '1.8'
targetCompatibility = '1.8'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package net.chrisrichardson.ftgo.kitchenservice.api;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

public class CreateTicketReply {
Expand All @@ -24,6 +25,11 @@ public boolean equals(Object o) {
return EqualsBuilder.reflectionEquals(this, o);
}

@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}

public void setTicketId(long ticketId) {
this.ticketId = ticketId;
}
Expand Down

0 comments on commit 35db60c

Please sign in to comment.