commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject [1/2] [lang] Simplify boolean expression
Date Fri, 24 Jul 2015 11:08:03 GMT
Repository: commons-lang
Updated Branches:
  refs/heads/master 17a6d163c -> f59a674a2


Simplify boolean expression


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

Branch: refs/heads/master
Commit: 5fb158cc05a9ec78e31e49abb654e00a7b65721b
Parents: 17a6d16
Author: Benedikt Ritter <britter@apache.org>
Authored: Fri Jul 24 13:06:47 2015 +0200
Committer: Benedikt Ritter <britter@apache.org>
Committed: Fri Jul 24 13:06:47 2015 +0200

----------------------------------------------------------------------
 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/5fb158cc/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 a0f83a1..5f167b9 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -6148,7 +6148,7 @@ public class StringUtils {
         }
         final int sz = cs.length();
         for (int i = 0; i < sz; i++) {
-            if (Character.isDigit(cs.charAt(i)) == false) {
+            if (!Character.isDigit(cs.charAt(i))) {
                 return false;
             }
         }


Mime
View raw message