mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-24 07:21:25 +07:00
16 lines
491 B
Java
16 lines
491 B
Java
import testutils.ThreadingAssertions;
|
|
import testutils.ExpectedPath
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
|
|
@ExpectedPath("LambdaWithMethodReference.testMethod -> LambdaWithMethodReference.processItem -> ThreadingAssertions.assertReadAccess()")
|
|
class LambdaWithMethodReference {
|
|
void testMethod() {
|
|
List<String> items = Arrays.asList("a", "b", "c");
|
|
items.forEach(this::processItem);
|
|
}
|
|
|
|
void processItem(String item) {
|
|
ThreadingAssertions.assertReadAccess();
|
|
}
|
|
} |