Package mockit.internal.util
Class ClassNaming
java.lang.Object
mockit.internal.util.ClassNaming
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isAnonymousClass
(Class<?> aClass) This method was created to work around an issue in the standardClass.isAnonymousClass()
method, which causes a sibling nested class to be loaded when called on a nested class.static boolean
isAnonymousClass
(String className)
-
Method Details
-
isAnonymousClass
This method was created to work around an issue in the standardClass.isAnonymousClass()
method, which causes a sibling nested class to be loaded when called on a nested class. If that sibling nested class is not in the classpath, aClassNotFoundException
would result.This method checks only the given class name, never causing any other classes to be loaded.
-
isAnonymousClass
-