-
Notifications
You must be signed in to change notification settings - Fork 185
Closed
Description
Take the following example
@org.junit.jupiter.api.Test
void testMain1() {
System.out.println();
List<String> list =
List.of("A", "1").stream().filter(
a -> "1".equals(a)
).collect(Collectors.toList());
assertEquals(1, list.size());
}
I cannot add an inline breakpoint to a -> "1".equals(a), because it is considered as a line breakpoint. But at the same time line breakpoint doesn't check if this line is under a lambda and make it a lambda breakpoint. If I use a lambda block things works or format it like
@org.junit.jupiter.api.Test
void testMain1() {
System.out.println();
List<String> list =
List.of("A", "1").stream().filter(a
-> "1".equals(a)
).collect(Collectors.toList());
assertEquals(1, list.size());
}
Metadata
Metadata
Assignees
Labels
No labels