some minor changes

This commit is contained in:
hneemann 2018-03-18 23:18:25 +01:00
parent aaf243381f
commit f85ab67fca

View File

@ -49,7 +49,7 @@ public final class JavaClass<T> {
} }
/** /**
* Creates the method map * Creates the method map.
* *
* @param instance the instance to call * @param instance the instance to call
* @return the method map * @return the method map
@ -65,7 +65,7 @@ public final class JavaClass<T> {
private final int argCount; private final int argCount;
private final int javaArgCount; private final int javaArgCount;
private final boolean isVarArgs; private final boolean isVarArgs;
private Class<?> compType; private final Class<?> compType;
private MyMethod(Method method) { private MyMethod(Method method) {
this.method = method; this.method = method;
@ -84,6 +84,7 @@ public final class JavaClass<T> {
argCount = argTypes.length - 1; argCount = argTypes.length - 1;
else else
argCount = argTypes.length; argCount = argTypes.length;
compType = null;
} }
} }