From b388a572c8ef9c971dbc16b89069429cc67c0928 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 8 Jul 2014 12:37:14 +0200 Subject: Findbugs: Remove redundant instanceof checks --- .../classes/jogamp/graph/geom/plane/AffineTransform.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/jogl/classes/jogamp') diff --git a/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java b/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java index 57239ac48..a9978abe5 100644 --- a/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java +++ b/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java @@ -534,13 +534,14 @@ public class AffineTransform implements Cloneable { if (src == null) { return null; } - if (src instanceof Path2D) { - return src.createTransformedShape(this); - } - final PathIterator path = src.iterator(this); - final Path2D dst = new Path2D(path.getWindingRule()); - dst.append(path, false); - return dst; + return src.createTransformedShape(this); + /** + * If !(src instanceof Path2D): (but here it always is) + final PathIterator path = src.iterator(this); + final Path2D dst = new Path2D(path.getWindingRule()); + dst.append(path, false); + return dst; + */ } @Override -- cgit v1.2.3