On Wed, 10 Nov 2021 07:10:53 GMT, Andrey Turbanov <d...@openjdk.java.net> wrote:

> There are couple of places where manual cycle is used to check if `String` 
> contains non-whitespaces characters.
> Since Java 11 we have String.isBlank() which could be used instead.

Changes requested by jjg (Reviewer).

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclint/Checker.java line 
1245:

> 1243:                 return true;
> 1244:         }
> 1245:         return false;

Suggest to change the method body to

return !tree.getBody().isBlank();

-------------

PR: https://git.openjdk.java.net/jdk/pull/6323

Reply via email to