aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2013-12-03 23:19:54 -0800
committerHarvey Harrison <[email protected]>2014-01-05 16:55:59 -0800
commitfd3d0dcf4db9b84ae346653f438c7fe4d2e45fd9 (patch)
tree537407934d77907ea244a6c8860c263c19ce9aa7 /src/java/com/jogamp/gluegen
parente7356d0bdbce5dd0bfb64b08f1f61ff41778e010 (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.java7
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