static Field findField ( Class < ? > clazz , String name ) { checkArgumentNotNull ( clazz ) ; checkArgumentNotNull ( name ) ; Field found = null ; for ( Field field : SecurityActions . getFields ( clazz ) ) { if ( field . getName ( ) . equals ( name ) ) { found = field ; } } LOGGER . debug ( "Field {} {}found on type: {}" , name , found != null ? "" : "not " , clazz . getName ( ) ) ; return found ; }
Tries to find a public field with the given name on the given class .