Skip to content

Commit 2133193

Browse files
LPD-52029 A var should not be xyz1 and xyz2 unless they are the same type. I renamed them to make it more accurate.
1 parent 79c49c9 commit 2133193

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

modules/apps/batch-engine/batch-engine-test/src/testIntegration/java/com/liferay/batch/engine/internal/test/BatchEngineExportTaskExecutorTest.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -690,34 +690,34 @@ private void _testExportBlogPostingsToXLSFile(
690690

691691
rowIterator.next();
692692

693-
List<Object[]> rowValues1 = new ArrayList<>();
693+
List<Object[]> rowValues = new ArrayList<>();
694694

695695
while (rowIterator.hasNext()) {
696696
Row row = rowIterator.next();
697697

698-
List<Object> rowValues2 = new ArrayList<>();
698+
List<Object> values = new ArrayList<>();
699699

700700
for (Cell cell : row) {
701701
if (CellType.BOOLEAN == cell.getCellType()) {
702-
rowValues2.add(cell.getBooleanCellValue());
702+
values.add(cell.getBooleanCellValue());
703703
}
704704
else if (CellType.NUMERIC == cell.getCellType()) {
705705
if (DateUtil.isCellDateFormatted(cell)) {
706-
rowValues2.add(cell.getDateCellValue());
706+
values.add(cell.getDateCellValue());
707707
}
708708
else {
709-
rowValues2.add(cell.getNumericCellValue());
709+
values.add(cell.getNumericCellValue());
710710
}
711711
}
712712
else {
713-
rowValues2.add(cell.getStringCellValue());
713+
values.add(cell.getStringCellValue());
714714
}
715715
}
716716

717-
rowValues1.add(filterFunction.apply(rowValues2.toArray()));
717+
rowValues.add(filterFunction.apply(values.toArray()));
718718
}
719719

720-
_assertExportedValues(blogsEntries, fieldNames, rowValues1);
720+
_assertExportedValues(blogsEntries, fieldNames, rowValues);
721721
}
722722

723723
private static final String

0 commit comments

Comments
 (0)