no String.valueOf suggestions, they're stupid

This commit is contained in:
peter
2012-12-21 14:48:39 +01:00
parent ed75ddc4f7
commit c703d48c41
2 changed files with 2 additions and 3 deletions
@@ -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()) &&
@@ -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();
}