We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 722fb11 commit 289a11dCopy full SHA for 289a11d
org.eclipse.jdt.ls.tests/src/org/eclipse/jdt/ls/core/internal/handlers/CompletionHandlerTest.java
@@ -3461,7 +3461,12 @@ public void testCompletion_Lambda() throws Exception {
3461
assertNotNull(lambda);
3462
assertTrue(lambda.getTextEdit().getLeft().getNewText().matches("\\$\\{1:\\w+\\} -> \\$\\{0\\}"));
3463
3464
- assertEquals("(Object arg0) ->", lambda.getLabel());
+ try {
3465
+ assertEquals("(Object t) ->", lambda.getLabel());
3466
+ } catch (ComparisonFailure e) {
3467
+ // In case the JDK has no sources
3468
+ assertEquals("(Object arg0) ->", lambda.getLabel());
3469
+ }
3470
assertNull(lambda.getLabelDetails().getDetail());
3471
assertEquals(lambda.getLabelDetails().getDescription(), "void");
3472
}
0 commit comments