src/java.base/share/classes/java/lang/Class.java
changeset 59297 498ce2452972
parent 59137 faac483dfb30
equal deleted inserted replaced
59296:9186be5c78ba 59297:498ce2452972
  3501 
  3501 
  3502     /**
  3502     /**
  3503      * Returns true if and only if this class was declared as an enum in the
  3503      * Returns true if and only if this class was declared as an enum in the
  3504      * source code.
  3504      * source code.
  3505      *
  3505      *
  3506      * Note that if an enum constant is declared with a class body,
  3506      * Note that {@link java.lang.Enum} is not itself an enum type.
       
  3507      *
       
  3508      * Also note that if an enum constant is declared with a class body,
  3507      * the class of that enum constant object is an anonymous class
  3509      * the class of that enum constant object is an anonymous class
  3508      * and <em>not</em> the class of the declaring enum type. The
  3510      * and <em>not</em> the class of the declaring enum type. The
  3509      * {@link Enum#getDeclaringClass} method of an enum constant can
  3511      * {@link Enum#getDeclaringClass} method of an enum constant can
  3510      * be used to get the class of the enum type declaring the
  3512      * be used to get the class of the enum type declaring the
  3511      * constant.
  3513      * constant.