summaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java')
-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