private static boolean fieldHasRuntimeVisibleAnnotation ( Field f ) { AnnotationEntry [ ] annotations = f . getAnnotationEntries ( ) ; if ( annotations != null ) { for ( AnnotationEntry annotation : annotations ) { if ( annotation . isRuntimeVisible ( ) ) { return true ; } } } return false ; }
looks to see the field has a runtime visible annotation if it does it might be autowired or some other mechanism attached that makes them less interesting for a toString call .