Added a few null pointer checks and performed minor touchups (tried improving a few equals, clone and hashCode methods).

This commit is contained in:
VictorD
2011-03-05 12:27:51 +01:00
parent 86344ad44e
commit cd490d826b
9 changed files with 51 additions and 16 deletions

View File

@@ -102,6 +102,10 @@ public class BlockVector extends Vector {
*/
@Override
public BlockVector clone() {
return new BlockVector(x, y, z);
BlockVector v = (BlockVector)super.clone();
v.x = x;
v.y = y;
v.z = z;
return v;
}
}