Skip to content

Commit aa84d50

Browse files
authored
remove the local variable and return the result directly
1 parent e96a77b commit aa84d50

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/java/examples/springbatch/paging/SpringBatchPagingTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ private long upperCaseRowCount() throws Exception {
9292
.build()
9393
.render(RenderingStrategy.MYBATIS3);
9494

95-
long count = personMapper.count(selectStatement);
96-
return count;
95+
return personMapper.count(selectStatement);;
9796
}
9897
}
9998
}

0 commit comments

Comments
 (0)