--- old/src/java.compiler/share/classes/javax/lang/model/element/NestingKind.java 2017-01-31 00:24:31.550851847 -0800
+++ new/src/java.compiler/share/classes/javax/lang/model/element/NestingKind.java 2017-01-31 00:24:31.458851844 -0800
@@ -89,25 +89,29 @@
/**
* A type that is a named member of another type.
+ * @jls 8.5 Member Type Declarations
*/
MEMBER,
/**
* A named type declared within a construct other than a type.
+ * @jls 14.3 Local Class Declarations
*/
LOCAL,
/**
* A type without a name.
+ * @jls 15.9.5 Anonymous Class Declarations
*/
ANONYMOUS;
/**
* Does this constant correspond to a nested type element?
* A nested type element is any that is not top-level.
- * An inner type element is any nested type element that
+ * More specifically, an inner type element is any nested type element that
* is not {@linkplain Modifier#STATIC static}.
* @return whether or not the constant is nested
+ * @jls 14.3 Inner Classes and Enclosing Instances
*/
public boolean isNested() {
return this != TOP_LEVEL;