retrieve type from binary comparisons to detect applicable constants (IDEA-165557)

This commit is contained in:
Anna.Kozlova
2016-12-19 09:40:53 +01:00
parent 12e86f8f1d
commit d7f10b93e1
3 changed files with 43 additions and 0 deletions
@@ -0,0 +1,17 @@
// "Import static constant 'foo.B.aaaaaaa'" "true"
package foo;
import static foo.B.aaaaaaa;
public class X {
{
if (1 == aaaaaaa);
}
}
class B {
public static Integer aaaaaaa = 1;
}
class B1 {
public static String aaaaaaa = "";
}
@@ -0,0 +1,15 @@
// "Import static constant 'foo.B.aaaaaaa'" "true"
package foo;
public class X {
{
if (1 == <caret>aaaaaaa);
}
}
class B {
public static Integer aaaaaaa = 1;
}
class B1 {
public static String aaaaaaa = "";
}