mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
don't suggest Math methods inside a Math method call (IDEA-114408)
This commit is contained in:
@@ -109,7 +109,7 @@ public class JavaMembersGetter extends MembersGetter {
|
||||
final PsiElement element = result.getElement();
|
||||
if (element instanceof PsiMethod) {
|
||||
final PsiClass aClass = ((PsiMethod)element).getContainingClass();
|
||||
if (aClass != null) {
|
||||
if (aClass != null && !"java.lang.Math".equals(aClass.getQualifiedName())) {
|
||||
return aClass;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
public class Zoo {
|
||||
void foo() {
|
||||
Math.min(2, ac<caret>)
|
||||
}
|
||||
|
||||
}
|
||||
+2
@@ -1383,4 +1383,6 @@ class Bar {
|
||||
assert ('valueOf' in myFixture.lookupElementStrings)
|
||||
}
|
||||
|
||||
public void testNoMathTargetMethods() { doAntiTest() }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user