public boolean protect ( AccessibleObject accessible ) { if ( accessible . isAccessible ( ) ) { accessible . setAccessible ( false ) ; return true ; } return false ; }
Checks if the given field or method is public and if so makes it unaccessible .