private void checkPermissions(){
  SecurityManager sm=System.getSecurityManager();
  if (sm != null) {
    Enumeration<Permission> enum_=permissions.elements();
    while (enum_.hasMoreElements()) {
      sm.checkPermission(enum_.nextElement());
    }
  }
}

private void checkPermissions ( ) { SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { Enumeration < Permission > enum_ = permissions . elements ( ) ; while ( enum_ . hasMoreElements ( ) ) { sm . checkPermission ( enum_ . nextElement ( ) ) ; } } }
check that the current access control context has all of the permissions necessary to load classes from this loader .
