commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject [lang] another formatting nit, one or the other is already null
Date Wed, 14 Feb 2018 18:01:57 GMT
Repository: commons-lang
Updated Branches:
  refs/heads/master 2c0429aab -> bb3fe2a37


another 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/bb3fe2a3
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/bb3fe2a3
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/bb3fe2a3

Branch: refs/heads/master
Commit: bb3fe2a37975920d1c7b9cf16309d86fe86e1a35
Parents: 2c0429a
Author: Rob Tompkins <christopher.tompkins@capitalone.com>
Authored: Wed Feb 14 13:01:51 2018 -0500
Committer: Rob Tompkins <christopher.tompkins@capitalone.com>
Committed: Wed Feb 14 13:01:51 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/bb3fe2a3/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 d688b24..72f4019 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -8513,7 +8513,7 @@ public class StringUtils {
      */
     private static boolean startsWith(final CharSequence str, final CharSequence prefix,
final boolean ignoreCase) {
         if (str == null || prefix == null) {
-            return str == null && prefix == null;
+            return str == prefix;
         }
         if (prefix.length() > str.length()) {
             return false;


Mime
View raw message