From c80f960279a600e922bdd39e1619007496aff35e Mon Sep 17 00:00:00 2001 From: Roberto Gentili Date: Wed, 1 May 2024 03:42:36 +0200 Subject: [PATCH] Renamed variable --- .../function/catalog/ConstructorInvokeFunction.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/java/src/main/java/io/github/toolfactory/jvm/function/catalog/ConstructorInvokeFunction.java b/java/src/main/java/io/github/toolfactory/jvm/function/catalog/ConstructorInvokeFunction.java index 3ff9562a..6837002c 100644 --- a/java/src/main/java/io/github/toolfactory/jvm/function/catalog/ConstructorInvokeFunction.java +++ b/java/src/main/java/io/github/toolfactory/jvm/function/catalog/ConstructorInvokeFunction.java @@ -53,10 +53,10 @@ public static class ForJava7 extends Abst { public ForJava7(Map 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); } @@ -67,10 +67,10 @@ public static class ForJava9 extends Abst { public ForJava9(Map 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); }