< prev index next >
src/java.base/share/classes/java/lang/Class.java
Print this page
@@ -3501,11 +3501,13 @@
/**
* Returns true if and only if this class was declared as an enum in the
* source code.
*
- * Note that if an enum constant is declared with a class body,
+ * Note that {@link java.lang.Enum} is not itself an enum type.
+ *
+ * Also note that if an enum constant is declared with a class body,
* the class of that enum constant object is an anonymous class
* and <em>not</em> the class of the declaring enum type. The
* {@link Enum#getDeclaringClass} method of an enum constant can
* be used to get the class of the enum type declaring the
* constant.
< prev index next >