You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/07/21 13:52:32 UTC
[commons-lang] branch master updated: simplify conditions (#925)
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 72c8b73fa simplify conditions (#925)
72c8b73fa is described below
commit 72c8b73fa4afb770d87f1eb6dff24a5f321877e4
Author: Bhimantoro Suryo Admodjo <bh...@gmail.com>
AuthorDate: Thu Jul 21 09:52:27 2022 -0400
simplify conditions (#925)
Co-authored-by: bhimsur <bhimsur>
---
src/main/java/org/apache/commons/lang3/BooleanUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/lang3/BooleanUtils.java b/src/main/java/org/apache/commons/lang3/BooleanUtils.java
index 2998ab71e..bad27b667 100644
--- a/src/main/java/org/apache/commons/lang3/BooleanUtils.java
+++ b/src/main/java/org/apache/commons/lang3/BooleanUtils.java
@@ -268,7 +268,7 @@ public class BooleanUtils {
if (result) {
return false;
}
- result = element;
+ result = true;
}
}
return result;