Skip to content

Commit

Permalink
Renamed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto-Gentili committed May 1, 2024
1 parent a274895 commit c80f960
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ public static class ForJava7 extends Abst {

public ForJava7(Map<Object, Object> context) throws Throwable {
ObjectProvider functionProvider = ObjectProvider.get(context);
Class<?> nativeAccessorImplClass = Class.forName("sun.reflect.NativeConstructorAccessorImpl");
Method method = nativeAccessorImplClass.getDeclaredMethod("newInstance0", Constructor.class, Object[].class);
Class<?> constructorAccessorImplClass = Class.forName("sun.reflect.NativeConstructorAccessorImpl");
Method method = constructorAccessorImplClass.getDeclaredMethod("newInstance0", Constructor.class, Object[].class);
ConsulterSupplyFunction getConsulterFunction = functionProvider.getOrBuildObject(ConsulterSupplyFunction.class, context);
MethodHandles.Lookup consulter = getConsulterFunction.apply(nativeAccessorImplClass);
MethodHandles.Lookup consulter = getConsulterFunction.apply(constructorAccessorImplClass);
method.setAccessible(true);
methodHandle = consulter.unreflect(method);
}
Expand All @@ -67,10 +67,10 @@ public static class ForJava9 extends Abst {

public ForJava9(Map<Object, Object> context) throws Throwable {
ObjectProvider functionProvider = ObjectProvider.get(context);
Class<?> nativeAccessorImplClass = Class.forName("jdk.internal.reflect.NativeConstructorAccessorImpl");
Method method = nativeAccessorImplClass.getDeclaredMethod("newInstance0", Constructor.class, Object[].class);
Class<?> constructorAccessorImplClass = Class.forName("jdk.internal.reflect.NativeConstructorAccessorImpl");
Method method = constructorAccessorImplClass.getDeclaredMethod("newInstance0", Constructor.class, Object[].class);
ConsulterSupplyFunction getConsulterFunction = functionProvider.getOrBuildObject(ConsulterSupplyFunction.class, context);
MethodHandles.Lookup consulter = getConsulterFunction.apply(nativeAccessorImplClass);
MethodHandles.Lookup consulter = getConsulterFunction.apply(constructorAccessorImplClass);
methodHandle = consulter.unreflect(method);
}

Expand Down

0 comments on commit c80f960

Please sign in to comment.