Skip to content
Permalink
Browse files
8277522: Make formatting of null consistent in Elements
Reviewed-by: jlahoda
  • Loading branch information
jddarcy committed Nov 22, 2021
1 parent e529865 commit 22f12ac429fbbf134d182d9bf2a16a3d43bc71e1
Showing 1 changed file with 9 additions and 8 deletions.
@@ -68,8 +68,8 @@ public interface Elements {
* </li>
* </ul>
*
* If this process leads to a list with a single element,
* the single element is returned, otherwise null is returned.
* If this process leads to a list with a single element, the
* single element is returned, otherwise {@code null} is returned.
*
* @param name fully qualified package name,
* or an empty string for an unnamed package
@@ -155,8 +155,8 @@ default Set<? extends PackageElement> getAllPackageElements(CharSequence name) {
* </li>
* </ul>
*
* If this process leads to a list with a single element,
* the single element is returned, otherwise null is returned.
* If this process leads to a list with a single element, the
* single element is returned, otherwise {@code null} is returned.
*
* @param name the canonical name
* @return the named type element,
@@ -735,8 +735,9 @@ default boolean isAutomaticModule(ModuleElement module) {
}

/**
* Returns the record component for the given accessor. Returns null if the
* given method is not a record component accessor.
* Returns the record component for the given accessor. Returns
* {@code null} if the given method is not a record component
* accessor.
*
* @implSpec The default implementation of this method checks if the element
* enclosing the accessor has kind {@link ElementKind#RECORD RECORD} if that is
@@ -747,8 +748,8 @@ default boolean isAutomaticModule(ModuleElement module) {
* record component is returned, in any other case {@code null} is returned.
*
* @param accessor the method for which the record component should be found.
* @return the record component, or null if the given method is not a record
* component accessor
* @return the record component, or {@code null} if the given
* method is not a record component accessor
* @since 16
*/
default RecordComponentElement recordComponentFor(ExecutableElement accessor) {

1 comment on commit 22f12ac

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 22f12ac Nov 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.