Skip to content

Commit

Permalink
Update GenericData.java
Browse files Browse the repository at this point in the history
  • Loading branch information
sduskis committed Feb 13, 2019
1 parent fbc0256 commit 3c3468d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ public final void setUnknownKeys(Map<String, Object> unknownFields) {

@Override
public boolean equals(Object o) {
if (!(o instanceof GenericData)) {
if (o == this) {
return true;
}
if (o == null || !(o instanceof GenericData)) {
return false;
}
GenericData that = (GenericData) o;
Expand Down

0 comments on commit 3c3468d

Please sign in to comment.