Skip to content

Commit ff2b548

Browse files
committed
Lambda cleanup
1 parent 814d755 commit ff2b548

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/java/org/apache/ibatis/scripting/xmltags/OgnlCacheTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ class DataClass {
4242
List<Future<Object>> futures = new ArrayList<>();
4343
context.put("data", new DataClass());
4444
ExecutorService executor = Executors.newCachedThreadPool();
45-
IntStream.range(0, run).forEach(i -> {
46-
futures.add(executor.submit(() -> OgnlCache.getValue("data.id", context)));
47-
});
45+
IntStream.range(0, run).forEach(i -> futures.add(executor.submit(() -> OgnlCache.getValue("data.id", context))));
4846
for (int i = 0; i < run; i++) {
4947
assertNotNull(futures.get(i).get());
5048
}

0 commit comments

Comments
 (0)