mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
no String.valueOf suggestions, they're stupid
This commit is contained in:
@@ -90,7 +90,7 @@ public abstract class MembersGetter {
|
||||
|
||||
public void processMembers(final Consumer<LookupElement> results, @Nullable final PsiClass where,
|
||||
final boolean acceptMethods, final boolean searchInheritors) {
|
||||
if (where == null) return;
|
||||
if (where == null || CommonClassNames.JAVA_LANG_STRING.equals(where.getQualifiedName())) return;
|
||||
|
||||
final boolean searchFactoryMethods = searchInheritors &&
|
||||
!CommonClassNames.JAVA_LANG_OBJECT.equals(where.getQualifiedName()) &&
|
||||
|
||||
+1
-2
@@ -726,8 +726,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
|
||||
|
||||
public void testDontAutoCastWhenAlreadyCasted() throws Throwable {
|
||||
configureByTestName();
|
||||
assertEquals("s", myItems[0].getLookupString());
|
||||
assertEquals("copyValueOf", myItems[1].getLookupString());
|
||||
myFixture.assertPreferredCompletionItems(0, "s", "toString");
|
||||
select();
|
||||
checkResultByTestName();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user