Fixed several dozen bugs as detected by FindBugs

This commit is contained in:
Obique PSWG
2015-10-10 23:36:16 -05:00
parent c89486185e
commit 5315185e7d
28 changed files with 190 additions and 70 deletions
+6
View File
@@ -219,6 +219,12 @@ public class Location implements Encodable, Serializable {
return x*x;
}
public boolean equals(Object o) {
if (!(o instanceof Location))
return false;
return equals((Location) o);
}
public boolean equals(Location l) {
if (terrain != l.terrain)
return false;