From 9a4e1fb57723039f07315a8ffe711740c10f3b86 Mon Sep 17 00:00:00 2001 From: "Travis CI (pmd-bot)" Date: Tue, 22 Aug 2017 21:48:40 +0000 Subject: [PATCH] Update documentation --- docs/pages/pmd/rules/java/strings.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/pages/pmd/rules/java/strings.md b/docs/pages/pmd/rules/java/strings.md index 376e42a5b0..ae7f34c3be 100644 --- a/docs/pages/pmd/rules/java/strings.md +++ b/docs/pages/pmd/rules/java/strings.md @@ -139,8 +139,9 @@ buf.append("Hello World"); // good String.trim().length() is an inefficient way to check if a String is really empty, as it creates a new String object just to check its size. Consider creating a static function that loops through a string, checking Character.isWhitespace() on each character and returning -false if a non-whitespace character is found. You can refer to Apache's StringUtils#isBlank (in commons-lang) -or Spring's StringUtils#hasText (in the Springs framework) for existing implementations. +false if a non-whitespace character is found. You can refer to Apache's StringUtils#isBlank (in commons-lang), +Spring's StringUtils#hasText (in the Spring framework) or Google's CharMatcher#whitespace (in Guava) for +existing implementations. **This rule is defined by the following Java class:** [net.sourceforge.pmd.lang.java.rule.strings.InefficientEmptyStringCheckRule](https://github.com/pmd/pmd/blob/master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/strings/InefficientEmptyStringCheckRule.java)