Both Method types fully qualified to avoid confusion.

This commit is contained in:
Florian Nücke
2020-09-16 10:26:09 +02:00
parent 7e6856f30a
commit 95ce96d235

View File

@@ -15,7 +15,6 @@ import org.objectweb.asm.Opcodes;
import org.objectweb.asm.Type;
import javax.annotation.Nullable;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Map;
@@ -653,7 +652,7 @@ public final class Translator {
}
private static OpcodeMethod findOpcodeMethod(final String name) {
for (final Method method : R5CPU.class.getDeclaredMethods()) {
for (final java.lang.reflect.Method method : R5CPU.class.getDeclaredMethods()) {
if (name.equals(method.getName())) {
return new OpcodeMethod(method);
}
@@ -668,7 +667,7 @@ public final class Translator {
public final boolean throwsExceptions;
public final String descriptor;
public OpcodeMethod(final Method method) {
public OpcodeMethod(final java.lang.reflect.Method method) {
argTypes = method.getParameterTypes();
returnType = method.getReturnType();
throwsExceptions = method.getExceptionTypes().length > 0;