Details
Description
In class com.ibatis.common.beans.ClassInfo, when NO SecurityManager is installed, each time the method ClassInfo#canAccessPrivateMethods() is called, a NullPointer exception is thrown, it would be more performant to test for nullity:
private boolean canAccessPrivateMethods() {
try {
SecurityManager manager = System.getSecurityManager();
if (manager == null)
manager.checkPermission(new ReflectPermission("suppressAccessChecks"));
return true;
} catch (SecurityException e)
catch (NullPointerException e)
{ return true; }}