diff options
author | Sven Gothel <sgothel@jausoft.com> | 2014-07-08 12:37:14 +0200 |
---|---|---|
committer | Sven Gothel <sgothel@jausoft.com> | 2014-07-08 12:37:14 +0200 |
commit | b388a572c8ef9c971dbc16b89069429cc67c0928 (patch) | |
tree | 2e55e550c567f97c5936e3f593a9e8451a3e823c /src/jogl/classes/jogamp/graph/geom | |
parent | 109e162a78ef5bab0a7481a8499ad1da48cea094 (diff) |
Findbugs: Remove redundant instanceof checks
Diffstat (limited to 'src/jogl/classes/jogamp/graph/geom')
-rw-r--r-- | src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java | 15 |
1 files changed, 8 insertions, 7 deletions
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 |