summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/graph/geom
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-05-06 15:10:42 +0200
committerSven Gothel <[email protected]>2011-05-06 15:10:42 +0200
commiteeb7c5fae3caf508fe5a6021ce700630632c6a02 (patch)
tree5c38a0b149d7b2c16a504564576da95072f03f8c /src/jogl/classes/com/jogamp/graph/geom
parent2570c1bee6dd8b33ac2e92b533e32b69b02a2cfc (diff)
Graph: more clone() cleanup.
- throw InternalError() for CloneNotSupportedException case, which never happens - AffineTransform clone() uses covariant return type as well, ie AffineTransform
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph/geom')
-rw-r--r--src/jogl/classes/com/jogamp/graph/geom/Outline.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/geom/Outline.java b/src/jogl/classes/com/jogamp/graph/geom/Outline.java
index e0c29cb84..b0ad86fda 100644
--- a/src/jogl/classes/com/jogamp/graph/geom/Outline.java
+++ b/src/jogl/classes/com/jogamp/graph/geom/Outline.java
@@ -228,7 +228,7 @@ public class Outline implements Cloneable, Comparable<Outline> {
Outline o;
try {
o = (Outline) super.clone();
- } catch (CloneNotSupportedException e) { return null; /* never, ever */ }
+ } catch (CloneNotSupportedException e) { throw new InternalError(); }
o.bbox = bbox.clone();
o.vertices = new ArrayList<Vertex>(vertices.size());
for(int i=0; i<vertices.size(); i++) {