Community
Participate
Working Groups
import java.util.Comparator; interface I { public void doit(); } class X { public Comparator<String> bar() { Comparator<String> c = (String s1, String s/*here*/) -> s1.compareToIgnoreCase(s2); return c; } } Press <Ctrl-Space> before /*here*/ and switch is shown as a choice (so does synchronized) See Bug 424088 as well (these may be related)
Same as bug 424088. *** This bug has been marked as a duplicate of bug 424088 ***