diff --git a/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java b/src/test/java/org/apache/commons/collections4/AbstractObjectTest.java index 3ece9fec5..dd70ff8f9 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 38e9f16dc..c1cbd07ca 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 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());