Remove use of redundant String.substring() parameter.

This commit is contained in:
Gary Gregory 2021-02-28 09:46:04 -05:00
parent fdd78dc3e5
commit 4a845dc8bc
2 changed files with 3 additions and 3 deletions

View File

@ -228,7 +228,7 @@ public abstract class AbstractObjectTest extends BulkTest {
final StringBuilder retval = new StringBuilder(); final StringBuilder retval = new StringBuilder();
retval.append(TEST_DATA_PATH); retval.append(TEST_DATA_PATH);
String colName = object.getClass().getName(); String colName = object.getClass().getName();
colName = colName.substring(colName.lastIndexOf(".") + 1, colName.length()); colName = colName.substring(colName.lastIndexOf(".") + 1);
retval.append(colName); retval.append(colName);
retval.append(".emptyCollection.version"); retval.append(".emptyCollection.version");
retval.append(getCompatibilityVersion()); retval.append(getCompatibilityVersion());
@ -240,7 +240,7 @@ public abstract class AbstractObjectTest extends BulkTest {
final StringBuilder retval = new StringBuilder(); final StringBuilder retval = new StringBuilder();
retval.append(TEST_DATA_PATH); retval.append(TEST_DATA_PATH);
String colName = object.getClass().getName(); String colName = object.getClass().getName();
colName = colName.substring(colName.lastIndexOf(".") + 1, colName.length()); colName = colName.substring(colName.lastIndexOf(".") + 1);
retval.append(colName); retval.append(colName);
retval.append(".fullCollection.version"); retval.append(".fullCollection.version");
retval.append(getCompatibilityVersion()); retval.append(getCompatibilityVersion());

View File

@ -167,7 +167,7 @@ public abstract class AbstractComparatorTest<T> extends AbstractObjectTest {
final StringBuilder retval = new StringBuilder(); final StringBuilder retval = new StringBuilder();
retval.append(TEST_DATA_PATH); retval.append(TEST_DATA_PATH);
String colName = object.getClass().getName(); String colName = object.getClass().getName();
colName = colName.substring(colName.lastIndexOf(".") + 1, colName.length()); colName = colName.substring(colName.lastIndexOf(".") + 1);
retval.append(colName); retval.append(colName);
retval.append(".version"); retval.append(".version");
retval.append(getCompatibilityVersion()); retval.append(getCompatibilityVersion());