You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2020/09/12 22:39:00 UTC
[commons-lang] 01/02: One per line
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit 433700ea801e5ec01c6ac2d3a48e872684c9ba77
Author: Sebb <se...@apache.org>
AuthorDate: Sat Sep 12 23:37:12 2020 +0100
One per line
---
src/main/java/org/apache/commons/lang3/StringUtils.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java
index 06de236..6956226 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -5393,7 +5393,8 @@ public class StringUtils {
}
private static int[] matches(final CharSequence first, final CharSequence second) {
- CharSequence max, min;
+ CharSequence max;
+ CharSequence min;
if (first.length() > second.length()) {
max = first;
min = second;
@@ -8430,7 +8431,7 @@ public class StringUtils {
return null;
}
str = strip(str, null);
- return str.isEmpty() ? null : str;
+ return str.isEmpty() ? null : str; // NOSONARLINT str cannot be null here
}
// Substring