An empty {@code Name} has a length of zero. + *
In the context of {@linkplain * javax.annotation.processing.ProcessingEnvironment annotation --- old/src/java.compiler/share/classes/javax/lang/model/element/PackageElement.java 2020-07-09 10:40:08.017417445 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/element/PackageElement.java 2020-07-09 10:40:07.617417445 -0700 @@ -53,7 +53,7 @@ /** * Returns the fully qualified name of this package. * This is also known as the package's canonical name. - * For an {@linkplain #isUnnamed() unnamed package}, an empty name is returned. + * For an {@linkplain #isUnnamed() unnamed package}, an empty name is returned. * * @apiNote The fully qualified name of a named package that is * not a subpackage of a named package is its simple name. The @@ -70,7 +70,7 @@ /** * Returns the simple name of this package. For an {@linkplain - * #isUnnamed() unnamed package}, an empty name is returned. + * #isUnnamed() unnamed package}, an empty name is returned. * * @return the simple name of this package or an empty name if * this is an unnamed package --- old/src/java.compiler/share/classes/javax/lang/model/element/TypeElement.java 2020-07-09 10:40:08.761417445 -0700 +++ new/src/java.compiler/share/classes/javax/lang/model/element/TypeElement.java 2020-07-09 10:40:08.361417445 -0700 @@ -121,7 +121,7 @@ * Returns the fully qualified name of this type element. * More precisely, it returns the canonical name. * For local and anonymous classes, which do not have canonical names, - * an empty name is returned. + * an empty name is returned. * *
The name of a generic type does not include any reference * to its formal type parameters. @@ -141,7 +141,7 @@ /** * Returns the simple name of this type element. * - * For an anonymous class, an empty name is returned. + * For an anonymous class, an empty name is returned. * * @return the simple name of this class or interface, * an empty name for an anonymous class