Remove use of redundant String.substring() parameter.
This commit is contained in:
parent
fdd78dc3e5
commit
4a845dc8bc
|
@ -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());
|
||||||
|
|
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue