< prev index next >

src/java.base/share/classes/java/lang/reflect/Field.java

Print this page

        

*** 322,331 **** --- 322,336 ---- + getType().getTypeName() + " " + getDeclaringClass().getTypeName() + "." + getName()); } + @Override + String toShortString() { + return "field " + getDeclaringClass().getTypeName() + "." + getName(); + } + /** * Returns a string describing this {@code Field}, including * its generic type. The format is the access modifiers for the * field, if any, followed by the generic field type, followed by * a space, followed by the fully-qualified name of the class
< prev index next >