From b5910f18f0b82a8a1f6f6252dc19971d5e487f39 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 8 Jul 2014 10:10:39 +0200 Subject: Findbugs.normal: Adding safeguard hashCode() implementation throwing InternalError("hashCode not designed") As long we don't use Object.hashCode() to idenitify the memory address, we can safeguard the code. --- src/jogl/classes/com/jogamp/graph/geom/SVertex.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/jogl/classes/com/jogamp/graph/geom/SVertex.java') diff --git a/src/jogl/classes/com/jogamp/graph/geom/SVertex.java b/src/jogl/classes/com/jogamp/graph/geom/SVertex.java index 8df8fbb31..4846ff5f1 100644 --- a/src/jogl/classes/com/jogamp/graph/geom/SVertex.java +++ b/src/jogl/classes/com/jogamp/graph/geom/SVertex.java @@ -185,6 +185,10 @@ public class SVertex implements Vertex { VectorUtil.isVec3Equal(getTexCoord(), 0, v.getTexCoord(), 0, FloatUtil.EPSILON) && VectorUtil.isVec3Equal(getCoord(), 0, v.getCoord(), 0, FloatUtil.EPSILON) ; } + @Override + public final int hashCode() { + throw new InternalError("hashCode not designed"); + } @Override public final float[] getTexCoord() { -- cgit v1.2.3