inline parameter: make it public; allow to inline refs to the same non final fields; allow to inline different constants with the same value (IDEA-40700)

This commit is contained in:
anna
2010-02-02 16:16:35 +03:00
parent 0cc203b176
commit 41b97a4f75
8 changed files with 132 additions and 10 deletions
@@ -0,0 +1,18 @@
public class Subject {
private int myInt;
public void wp() {
myInt += User.OUR_CONST;
}
}
class User {
public static final int OUR_CONST = 2;
public static final int OUR_CONST2 = 2;
private void oper() {
Subject subj = new Subject();
subj.wp();
subj.wp();
}
}