< prev index next >

src/java.base/share/classes/sun/reflect/misc/ReflectUtil.java

Print this page

        

@@ -310,15 +310,6 @@
                 return true;
             }
         }
         return false;
     }
-
-    /**
-     * Checks if {@code Class cls} is a VM-anonymous class
-     * as defined by {@link jdk.internal.misc.Unsafe#defineAnonymousClass}
-     * (not to be confused with a Java Language anonymous inner class).
-     */
-    public static boolean isVMAnonymousClass(Class<?> cls) {
-        return cls.getName().indexOf('/') > -1;
-    }
 }
< prev index next >