remove redundant class qualifiers from Classes.java

This commit is contained in:
Joel Dice 2014-12-29 10:00:51 -07:00
parent 3e2545e5a7
commit d37cb93d50

View File

@ -295,9 +295,9 @@ public class Classes {
}
Class c = loader.loadClass(name);
VMClass vmc = SystemClassLoader.vmClass(c);
Classes.link(vmc, loader);
link(vmc, loader);
if (initialize) {
Classes.initialize(vmc);
initialize(vmc);
}
return c;
}
@ -315,7 +315,7 @@ public class Classes {
} else {
if (name.length() == 1) {
return SystemClassLoader.getClass
(Classes.primitiveClass(name.charAt(0)));
(primitiveClass(name.charAt(0)));
} else {
throw new ClassNotFoundException(name);
}
@ -378,7 +378,7 @@ public class Classes {
public static int findField(VMClass vmClass, String name) {
if (vmClass.fieldTable != null) {
Classes.link(vmClass);
link(vmClass);
for (int i = 0; i < vmClass.fieldTable.length; ++i) {
if (toString(vmClass.fieldTable[i].name).equals(name)) {
@ -426,7 +426,7 @@ public class Classes {
{
VMMethod[] methodTable = vmClass.methodTable;
if (methodTable != null) {
Classes.link(vmClass);
link(vmClass);
if (parameterTypes == null) {
parameterTypes = new Class[0];
@ -464,7 +464,7 @@ public class Classes {
Method[] array = new Method[countMethods(vmClass, publicOnly)];
VMMethod[] methodTable = vmClass.methodTable;
if (methodTable != null) {
Classes.link(vmClass);
link(vmClass);
int ai = 0;
for (int i = 0, j = declaredMethodCount(vmClass); i < j; ++i) {
@ -498,7 +498,7 @@ public class Classes {
public static Field[] getFields(VMClass vmClass, boolean publicOnly) {
Field[] array = new Field[countFields(vmClass, publicOnly)];
if (vmClass.fieldTable != null) {
Classes.link(vmClass);
link(vmClass);
int ai = 0;
for (int i = 0; i < vmClass.fieldTable.length; ++i) {