You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ch...@apache.org on 2018/02/14 17:56:50 UTC

[lang] formatting nit, one or the other is already null

Repository: commons-lang
Updated Branches:
  refs/heads/master 2e9f3a801 -> 2c0429aab


formatting nit, one or the other is already null


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/2c0429aa
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/2c0429aa
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/2c0429aa

Branch: refs/heads/master
Commit: 2c0429aabd2632c8c6a242e4a23d5eb6f46035c0
Parents: 2e9f3a8
Author: Rob Tompkins <ch...@capitalone.com>
Authored: Wed Feb 14 12:56:44 2018 -0500
Committer: Rob Tompkins <ch...@capitalone.com>
Committed: Wed Feb 14 12:56:44 2018 -0500

----------------------------------------------------------------------
 src/main/java/org/apache/commons/lang3/StringUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/2c0429aa/src/main/java/org/apache/commons/lang3/StringUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java
index 4619a50..d688b24 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -8626,7 +8626,7 @@ public class StringUtils {
      */
     private static boolean endsWith(final CharSequence str, final CharSequence suffix, final boolean ignoreCase) {
         if (str == null || suffix == null) {
-            return str == null && suffix == null;
+            return str == suffix;
         }
         if (suffix.length() > str.length()) {
             return false;