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:38:59 UTC

[commons-lang] branch master updated (693e512 -> 4b5f1cf)

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git.


    from 693e512  Useless assignment
     new 433700e  One per line
     new 4b5f1cf  One per line

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 | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)


[commons-lang] 02/02: One per line

Posted by se...@apache.org.
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 4b5f1cf57dee74a23a6cb942b0acaa73150edc99
Author: Sebb <se...@apache.org>
AuthorDate: Sat Sep 12 23:38:51 2020 +0100

    One per line
---
 src/main/java/org/apache/commons/lang3/StringUtils.java | 6 ++++--
 1 file changed, 4 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 6956226..3089082 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -7907,7 +7907,8 @@ public class StringUtils {
             return ArrayUtils.EMPTY_STRING_ARRAY;
         }
         final List<String> list = new ArrayList<>();
-        int i = 0, start = 0;
+        int i = 0;
+        int start = 0;
         boolean match = false;
         boolean lastMatch = false;
         while (i < len) {
@@ -7958,7 +7959,8 @@ public class StringUtils {
         }
         final List<String> list = new ArrayList<>();
         int sizePlus1 = 1;
-        int i = 0, start = 0;
+        int i = 0;
+        int start = 0;
         boolean match = false;
         boolean lastMatch = false;
         if (separatorChars == null) {


[commons-lang] 01/02: One per line

Posted by se...@apache.org.
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