mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-169818 Completion for first argument of Map.getOrDefault should be same as for Map.get
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import java.util.concurrent.TimeUnit;
|
||||
import java.util.*;
|
||||
|
||||
public class SomeClass {
|
||||
String com(Map<TimeUnit, String> map) {
|
||||
return map.getOrDefault(<caret>);
|
||||
}
|
||||
}
|
||||
+5
@@ -243,4 +243,9 @@ public void testConvertToObjectStream() {
|
||||
public void testUnboundTypeArgs() { doTest(); }
|
||||
|
||||
public void testCallBeforeLambda() { doTest(false); }
|
||||
|
||||
public void testMapGetOrDefault() {
|
||||
configureByTestName();
|
||||
myFixture.assertPreferredCompletionItems(0, "TimeUnit.DAYS");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user