private Object getFieldValue ( final Field field ) { Object field_value = AccessController . doPrivileged ( new PrivilegedAction < Object > ( ) { @ Override public Object run ( ) { try { Object value = field . get ( _member ) ; // Don't dump sensitive data boolean sensitive = _member . getClass ( ) . isAnnotationPresent ( Sensitive . class ) || field . isAnnotationPresent ( Sensitive . class ) ; if ( value != null && sensitive ) { value = DataFormatHelper . sensitiveToString ( value ) ; } return value ; } catch ( IllegalAccessException e ) { // No FFDC code needed - we're in the middle of FFDC'ing! // Should not happen - if it does return a string :-) return "/* Could not access " + field . getName ( ) + " */" ; } } } ) ; return field_value ; }
Return the value of the member s field