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 2024/06/03 11:32:51 UTC
(commons-lang) branch master updated (b5d056211 -> 9e9d29375)
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
from b5d056211 Remove guesswork comment that could be true of any method
new fd4282b83 Remove whitespace
new 9e9d29375 Null check is redundant for rare case
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
src/main/java/org/apache/commons/lang3/StringUtils.java | 4 ----
1 file changed, 4 deletions(-)
(commons-lang) 01/02: Remove whitespace
Posted by gg...@apache.org.
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
commit fd4282b8305989cac492cab5ebbf576dd04a3d9b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Jun 3 07:28:52 2024 -0400
Remove whitespace
---
src/main/java/org/apache/commons/lang3/StringUtils.java | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java
index 193aa35c5..bfaba57c1 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -7868,7 +7868,6 @@ public class StringUtils {
*/
private static String[] splitWorker(final String str, final char separatorChar, final boolean preserveAllTokens) {
// Performance tuned for 2.0 (JDK1.4)
-
if (str == null) {
return null;
}
(commons-lang) 02/02: Null check is redundant for rare case
Posted by gg...@apache.org.
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
commit 9e9d293755c23422cae1a1084a771abac1b30f2a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Jun 3 07:30:55 2024 -0400
Null check is redundant for rare case
---
src/main/java/org/apache/commons/lang3/StringUtils.java | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java
index bfaba57c1..fa3a69071 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -7103,9 +7103,6 @@ public class StringUtils {
* @since 2.0
*/
public static String reverseDelimited(final String str, final char separatorChar) {
- if (str == null) {
- return null;
- }
final String[] strs = split(str, separatorChar);
ArrayUtils.reverse(strs);
return join(strs, separatorChar);