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-collections.git


The following commit(s) were added to refs/heads/master by this push:
     new 4a845dc  Remove use of redundant String.substring() parameter.
4a845dc is described below

commit 4a845dc8bc2debd59d2289a7a58fd1f4d5a23607
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Feb 28 09:46:04 2021 -0500

    Remove use of redundant String.substring() parameter.
---
 src/test/java/org/apache/commons/collections4/AbstractObjectTest.java | 4 ++--
 .../commons/collections4/comparators/AbstractComparatorTest.java      | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java 
b/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java
index 3ece9fe..dd70ff8 100644
--- a/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java
+++ b/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java
@@ -228,7 +228,7 @@ public abstract class AbstractObjectTest extends BulkTest {
         final StringBuilder retval = new StringBuilder();
         retval.append(TEST_DATA_PATH);
         String colName = object.getClass().getName();
-        colName = colName.substring(colName.lastIndexOf(".") + 1, 
colName.length());
+        colName = colName.substring(colName.lastIndexOf(".") + 1);
         retval.append(colName);
         retval.append(".emptyCollection.version");
         retval.append(getCompatibilityVersion());
@@ -240,7 +240,7 @@ public abstract class AbstractObjectTest extends BulkTest {
         final StringBuilder retval = new StringBuilder();
         retval.append(TEST_DATA_PATH);
         String colName = object.getClass().getName();
-        colName = colName.substring(colName.lastIndexOf(".") + 1, 
colName.length());
+        colName = colName.substring(colName.lastIndexOf(".") + 1);
         retval.append(colName);
         retval.append(".fullCollection.version");
         retval.append(getCompatibilityVersion());
diff --git 
a/src/test/java/org/apache/commons/collections4/comparators/AbstractComparatorTest.java
 
b/src/test/java/org/apache/commons/collections4/comparators/AbstractComparatorTest.java
index 38e9f16..c1cbd07 100644
--- 
a/src/test/java/org/apache/commons/collections4/comparators/AbstractComparatorTest.java
+++ 
b/src/test/java/org/apache/commons/collections4/comparators/AbstractComparatorTest.java
@@ -167,7 +167,7 @@ public abstract class AbstractComparatorTest<T> extends 
AbstractObjectTest {
         final StringBuilder retval = new StringBuilder();
         retval.append(TEST_DATA_PATH);
         String colName = object.getClass().getName();
-        colName = colName.substring(colName.lastIndexOf(".") + 1, 
colName.length());
+        colName = colName.substring(colName.lastIndexOf(".") + 1);
         retval.append(colName);
         retval.append(".version");
         retval.append(getCompatibilityVersion());

Reply via email to