diff options
author | Brian Carlstrom <bdc@google.com> | 2013-07-29 18:10:19 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-07-29 18:10:19 -0700 |
commit | e91ecc977f60381ac130751e30df576fd81775a5 (patch) | |
tree | 15a4b622c98075cf5e84589018538f430b40f149 /libdvm | |
parent | f52fb32f8737693f5f3b424a26e00580390c3f4b (diff) | |
parent | 22606cfa0888c6848b56613b3d62f130c1754100 (diff) | |
download | libcore-e91ecc977f60381ac130751e30df576fd81775a5.zip libcore-e91ecc977f60381ac130751e30df576fd81775a5.tar.gz libcore-e91ecc977f60381ac130751e30df576fd81775a5.tar.bz2 |
am 22606cfa: Merge "Remove some unused java.lang.reflect constructors"
* commit '22606cfa0888c6848b56613b3d62f130c1754100':
Remove some unused java.lang.reflect constructors
Diffstat (limited to 'libdvm')
-rw-r--r-- | libdvm/src/main/java/java/lang/reflect/Constructor.java | 2 | ||||
-rw-r--r-- | libdvm/src/main/java/java/lang/reflect/Field.java | 14 | ||||
-rw-r--r-- | libdvm/src/main/java/java/lang/reflect/Method.java | 15 |
3 files changed, 1 insertions, 30 deletions
diff --git a/libdvm/src/main/java/java/lang/reflect/Constructor.java b/libdvm/src/main/java/java/lang/reflect/Constructor.java index 7cc7e09..531f269 100644 --- a/libdvm/src/main/java/java/lang/reflect/Constructor.java +++ b/libdvm/src/main/java/java/lang/reflect/Constructor.java @@ -96,7 +96,7 @@ public final class Constructor<T> extends AccessibleObject implements GenericDec * @param slot * the slot of the constructor inside the VM class structure */ - private Constructor (Class<T> declaringClass, Class<?>[] ptypes, Class<?>[] extypes, int slot, int methodDexIndex) { + private Constructor(Class<T> declaringClass, Class<?>[] ptypes, Class<?>[] extypes, int slot, int methodDexIndex) { this.declaringClass = declaringClass; this.parameterTypes = ptypes; this.exceptionTypes = extypes; // may be null diff --git a/libdvm/src/main/java/java/lang/reflect/Field.java b/libdvm/src/main/java/java/lang/reflect/Field.java index dcafaf7..fa8e5e7 100644 --- a/libdvm/src/main/java/java/lang/reflect/Field.java +++ b/libdvm/src/main/java/java/lang/reflect/Field.java @@ -91,20 +91,6 @@ public final class Field extends AccessibleObject implements Member { private static final char TYPE_DOUBLE = 'D'; - /** - * Construct a clone of the given instance. - * - * @param orig non-null; the original instance to clone - */ - /*package*/ Field(Field orig) { - this(orig.declaringClass, orig.type, orig.name, orig.slot, orig.fieldDexIndex); - - // Copy the accessible flag. - if (orig.flag) { - this.flag = true; - } - } - private Field(Class<?> declaringClass, Class<?> type, String name, int slot, int fieldDexIndex) { this.declaringClass = declaringClass; this.type = type; diff --git a/libdvm/src/main/java/java/lang/reflect/Method.java b/libdvm/src/main/java/java/lang/reflect/Method.java index aec7a9b..028b9ca 100644 --- a/libdvm/src/main/java/java/lang/reflect/Method.java +++ b/libdvm/src/main/java/java/lang/reflect/Method.java @@ -112,21 +112,6 @@ public final class Method extends AccessibleObject implements GenericDeclaration } } - /** - * Construct a clone of the given instance. - * - * @param orig non-null; the original instance to clone - */ - /*package*/ Method(Method orig) { - this(orig.declaringClass, orig.parameterTypes, orig.exceptionTypes, - orig.returnType, orig.name, orig.slot, orig.methodDexIndex); - - // Copy the accessible flag. - if (orig.flag) { - this.flag = true; - } - } - private Method(Class<?> declaring, Class<?>[] paramTypes, Class<?>[] exceptTypes, Class<?> returnType, String name, int slot, int methodDexIndex) { this.declaringClass = declaring; this.name = name; |