mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
java: complete classes with dollars in the middle (IDEA-247596)
requested for future panama boxes GitOrigin-RevId: 188d54e94cc8c6dd4eb7818b3bceb004031b4984
This commit is contained in:
committed by
intellij-monorepo-bot
parent
03ccfba495
commit
b49f77fe1c
+1
-1
@@ -112,7 +112,7 @@ public final class JavaCompletionProcessor implements PsiScopeProcessor, Element
|
||||
@ApiStatus.Internal
|
||||
public static boolean seemsInternal(PsiClass clazz) {
|
||||
String name = clazz.getName();
|
||||
return name != null && name.contains("$");
|
||||
return name != null && name.startsWith("$");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import imported.*;
|
||||
|
||||
class C {
|
||||
WithD<caret>
|
||||
}
|
||||
+7
@@ -1744,6 +1744,13 @@ class Foo extends myClass
|
||||
doAntiTest()
|
||||
}
|
||||
|
||||
void testClassesWithDollarInTheMiddle() {
|
||||
myFixture.addClass('package imported; public class Foo$WithDollarImported {}')
|
||||
configureByTestName()
|
||||
myFixture.completeBasic()
|
||||
assert 'Foo$WithDollarImported' in myFixture.lookupElementStrings
|
||||
}
|
||||
|
||||
@NeedsIndex.ForStandardLibrary
|
||||
void "test don't show static inner class after instance qualifier"() {
|
||||
myFixture.configureByText "a.java", """
|
||||
|
||||
Reference in New Issue
Block a user