jdk/src/share/classes/java/lang/reflect/Field.java
changeset 16729 3b26e313ad81
parent 15659 e575dab44ff5
child 16743 b0b34102bb4c
equal deleted inserted replaced
16728:1b7611896b3b 16729:3b26e313ad81
   286      * <p>The modifiers are placed in canonical order as specified by
   286      * <p>The modifiers are placed in canonical order as specified by
   287      * "The Java Language Specification".  This is {@code public},
   287      * "The Java Language Specification".  This is {@code public},
   288      * {@code protected} or {@code private} first, and then other
   288      * {@code protected} or {@code private} first, and then other
   289      * modifiers in the following order: {@code static}, {@code final},
   289      * modifiers in the following order: {@code static}, {@code final},
   290      * {@code transient}, {@code volatile}.
   290      * {@code transient}, {@code volatile}.
       
   291      *
       
   292      * @return a string describing this {@code Field}
       
   293      * @jls 8.3.1 Field Modifiers
   291      */
   294      */
   292     public String toString() {
   295     public String toString() {
   293         int mod = getModifiers();
   296         int mod = getModifiers();
   294         return (((mod == 0) ? "" : (Modifier.toString(mod) + " "))
   297         return (((mod == 0) ? "" : (Modifier.toString(mod) + " "))
   295             + getTypeName(getType()) + " "
   298             + getTypeName(getType()) + " "
   313      *
   316      *
   314      * @return a string describing this {@code Field}, including
   317      * @return a string describing this {@code Field}, including
   315      * its generic type
   318      * its generic type
   316      *
   319      *
   317      * @since 1.5
   320      * @since 1.5
       
   321      * @jls 8.3.1 Field Modifiers
   318      */
   322      */
   319     public String toGenericString() {
   323     public String toGenericString() {
   320         int mod = getModifiers();
   324         int mod = getModifiers();
   321         Type fieldType = getGenericType();
   325         Type fieldType = getGenericType();
   322         return (((mod == 0) ? "" : (Modifier.toString(mod) + " "))
   326         return (((mod == 0) ? "" : (Modifier.toString(mod) + " "))