mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
restore primitive type completion in parameter lists
This commit is contained in:
@@ -60,8 +60,7 @@ public class JavaCompletionData extends JavaAwareCompletionData{
|
||||
new ParentElementFilter(new ClassFilter(PsiTryStatement.class)))
|
||||
)));
|
||||
public static final PsiJavaElementPattern.Capture<PsiElement> INSIDE_PARAMETER_LIST =
|
||||
PsiJavaPatterns.psiElement().withSuperParent(
|
||||
2,
|
||||
PsiJavaPatterns.psiElement().withParent(
|
||||
psiElement(PsiJavaCodeReferenceElement.class).withParent(
|
||||
psiElement(PsiTypeElement.class).withParent(PsiParameterList.class)));
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
public class Foo {
|
||||
Object foo(bo<caret>){ }
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public class Foo {
|
||||
Object foo(boolean <caret>){ }
|
||||
}
|
||||
@@ -664,5 +664,7 @@ public class NormalCompletionTest extends LightCompletionTestCase {
|
||||
|
||||
public void testEnumConstantFromEnumMember() throws Throwable { doTest(); }
|
||||
|
||||
public void testPrimitiveMethodParameter() throws Throwable { doTest(); }
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user