Skip to content

Commit

Permalink
[RESTEASY-1974] Checkstyle - Missing hashCode()
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Terem authored and asoldano committed Nov 16, 2018
1 parent 6f6fca0 commit 71a0e1f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,9 @@ public boolean equals(Object obj)
return super.equals(obj);
}

@Override
public int hashCode(){
return super.hashCode();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,9 @@ public boolean equals(Object obj)
return super.equals(obj);
}

@Override
public int hashCode(){
return super.hashCode();
}

}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.jboss.resteasy.test.rx.resource;

import java.util.Objects;

public class Thing {

private String name;
Expand Down Expand Up @@ -30,4 +32,9 @@ public boolean equals(Object o) {
}
return name.equals(((Thing) o).name);
}

@Override
public int hashCode() {
return Objects.hash(name);
}
}

0 comments on commit 71a0e1f

Please sign in to comment.