Skip to content
Snippets Groups Projects
Commit 757bc066 authored by Frantisek Simon's avatar Frantisek Simon
Browse files

#10 Java 1.6 compatible

parent c825d466
Branches
Tags
No related merge requests found
......@@ -165,13 +165,15 @@ public class TrophyReceivedDialog extends TablexiaDialog {
final Placeholder other = ((Placeholder) otherObj);
return Objects.equals(getTotal(), other.getTotal())
&& Objects.equals(getActual(), other.getActual());
return (getTotal() == other.getTotal() && getActual() == other.getActual());
}
@Override
public int hashCode() {
return Objects.hash(getTotal(), getActual());
int code = 0;
code += getTotal() * 13;
code += getActual() * 53;
return code;
}
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment