File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
byte-buddy-dep/src/main/java/net/bytebuddy Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -8348,8 +8348,10 @@ protected void onDispatch(MethodVisitor methodVisitor) {
83488348 */
83498349 private static final Loader LOADER = resolve();
83508350
8351- /*
8351+ /**
83528352 * Resolves the loader for the current VM.
8353+ *
8354+ * @return An appropriate loader.
83538355 */
83548356 @SuppressFBWarnings(value = {"DE_MIGHT_IGNORE", "REC_CATCH_EXCEPTION"}, justification = "Exception should not be rethrown but trigger a fallback")
83558357 private static Loader resolve() {
@@ -8605,7 +8607,7 @@ public int getLocalVariableLength() {
86058607 }
86068608
86078609 /**
8608- * A loader that uses a method handle lookup object to load a class, similar to the following :
8610+ * A loader that uses a method handle lookup object to load a class. This is implemented as follows :
86098611 * <blockquote><pre>
86108612 * MethodHandleInfo info = caller.revealDirect(implementation);
86118613 * boolean classData = (Modifier.isProtected(info.getModifiers())
Original file line number Diff line number Diff line change @@ -42,19 +42,19 @@ public enum GraalImageCode {
4242 RUNTIME (true , true ),
4343
4444 /**
45- * Indicates that the property
45+ * Indicates that a Graal VM property is set to an unknown value.
4646 */
4747 UNKNOWN (false , false ),
4848
4949 /**
50- * Indicates that
50+ * Indicates that no Graal VM property is set.
5151 */
5252 NONE (false , false );
5353
5454 /**
5555 * The current image code.
5656 */
57- private static GraalImageCode CURRENT ;
57+ private static GraalImageCode current ;
5858
5959 /**
6060 * Resolves the status of the Graal image code.
@@ -63,7 +63,7 @@ public enum GraalImageCode {
6363 */
6464 @ SuppressFBWarnings (value = "LI_LAZY_INIT_STATIC" , justification = "This behaviour is intended to avoid early binding in native images." )
6565 public static GraalImageCode getCurrent () {
66- GraalImageCode current = CURRENT ;
66+ GraalImageCode current = GraalImageCode . current ;
6767 if (current == null ) {
6868 String value = doPrivileged (new GetSystemPropertyAction ("org.graalvm.nativeimage.imagecode" ));
6969 if (value == null ) {
@@ -77,7 +77,7 @@ public static GraalImageCode getCurrent() {
7777 } else {
7878 current = GraalImageCode .UNKNOWN ;
7979 }
80- CURRENT = current ;
80+ GraalImageCode . current = current ;
8181 }
8282 return current ;
8383 }
You can’t perform that action at this time.
0 commit comments