Class ClassNaming
java.lang.Object
mockit.internal.util.ClassNaming
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAnonymousClass(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 booleanisAnonymousClass(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, aClassNotFoundExceptionwould result.This method checks only the given class name, never causing any other classes to be loaded.
-
isAnonymousClass
-