From 9e9d293755c23422cae1a1084a771abac1b30f2a Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Mon, 3 Jun 2024 07:30:55 -0400 Subject: [PATCH] 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);