private void checkMemberAccess(int type){
  SecurityManager security=System.getSecurityManager();
  if (security != null) {
    security.checkMemberAccess(this,type);
    String packageName=getPackageName();
    if (!packageName.isEmpty()) {
      security.checkPackageAccess(packageName);
    }
  }
}

private void checkMemberAccess ( int type ) { SecurityManager security = System . getSecurityManager ( ) ; if ( security != null ) { security . checkMemberAccess ( this , type ) ; String packageName = getPackageName ( ) ; if ( ! packageName . isEmpty ( ) ) { security . checkPackageAccess ( packageName ) ; } } }
utility for security checks
