diff options
author | Harvey Harrison <[email protected]> | 2013-12-03 23:19:54 -0800 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2014-01-05 16:55:59 -0800 |
commit | fd3d0dcf4db9b84ae346653f438c7fe4d2e45fd9 (patch) | |
tree | 537407934d77907ea244a6c8860c263c19ce9aa7 /src/java/com/jogamp/gluegen | |
parent | e7356d0bdbce5dd0bfb64b08f1f61ff41778e010 (diff) |
gluegen: MethodBinding implements clone() without implenting Clonable
Just directly call the copy-constructor and avoid using clone.
Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/java/com/jogamp/gluegen')
-rw-r--r-- | src/java/com/jogamp/gluegen/MethodBinding.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/java/com/jogamp/gluegen/MethodBinding.java b/src/java/com/jogamp/gluegen/MethodBinding.java index 8c2bd9e..5de604f 100644 --- a/src/java/com/jogamp/gluegen/MethodBinding.java +++ b/src/java/com/jogamp/gluegen/MethodBinding.java @@ -197,7 +197,7 @@ public class MethodBinding { less than 0 then replaces the return type. */ public MethodBinding replaceJavaArgumentType(int argumentNumber, JavaType newArgType) { - MethodBinding binding = (MethodBinding) clone(); + MethodBinding binding = new MethodBinding(this); binding.javaArgumentTypes = null; if (argumentNumber < 0) { binding.setJavaReturnType(newArgType); @@ -553,11 +553,6 @@ public class MethodBinding { return buf.toString(); } - @Override - public final Object clone() { - return new MethodBinding(this); - } - /** Returns a String containing the descriptor (signature in internal format) of this MethodBinding as it will be emitted. This is used to disambiguate between overloadings when |