From e49610d95ce2d443b700a2fbc8a76ce5c4b909e2 Mon Sep 17 00:00:00 2001 From: reobf <2215595288@qq.com> Date: Thu, 26 Sep 2024 22:20:47 +0800 Subject: [PATCH] update --- build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 072cb5f..63766a2 100644 --- a/build.gradle +++ b/build.gradle @@ -8,7 +8,7 @@ buildscript { try { /// we obtain the actual environment - Class processEnvironmentClass = Class.forName("java.lang.ProcessEnvironment"); + java.lang.Class processEnvironmentClass = java.lang.Class.forName("java.lang.ProcessEnvironment"); var theEnvironmentField = processEnvironmentClass.getDeclaredField("theEnvironment"); boolean environmentAccessibility = theEnvironmentField.isAccessible(); theEnvironmentField.setAccessible(true); @@ -25,13 +25,13 @@ buildscript { } else { // This is triggered to work on openjdk 1.8.0_91 // The ProcessEnvironment$Variable is the key of the map - Class variableClass = (Class) Class.forName("java.lang.ProcessEnvironment$Variable"); + java.lang.Class variableClass = (java.lang.Class) java.lang.Class.forName("java.lang.ProcessEnvironment$Variable"); var convertToVariable = variableClass.getMethod("valueOf", String.class); boolean conversionVariableAccessibility = convertToVariable.isAccessible(); convertToVariable.setAccessible(true); // The ProcessEnvironment$Value is the value fo the map - Class valueClass = (Class) Class.forName("java.lang.ProcessEnvironment$Value"); + java.lang.Class valueClass = (java.lang.Class) java.lang.Class.forName("java.lang.ProcessEnvironment$Value"); var convertToValue = valueClass.getMethod("valueOf", String.class); boolean conversionValueAccessibility = convertToValue.isAccessible(); convertToValue.setAccessible(true);