From eeb7c5fae3caf508fe5a6021ce700630632c6a02 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 6 May 2011 15:10:42 +0200 Subject: Graph: more clone() cleanup. - throw InternalError() for CloneNotSupportedException case, which never happens - AffineTransform clone() uses covariant return type as well, ie AffineTransform --- src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java | 4 ++-- 1 file changed, 2 insertions(+), 2 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 b7c7c19e2..fc086ebe4 100644 --- a/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java +++ b/src/jogl/classes/jogamp/graph/geom/plane/AffineTransform.java @@ -519,9 +519,9 @@ public class AffineTransform implements Cloneable, Serializable { } @Override - public Object clone() { + public AffineTransform clone() { try { - return super.clone(); + return (AffineTransform) super.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(); } -- cgit v1.2.3