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-01 19:47:39 +03:00
parent 0cc203b176
commit 41b97a4f75
8 changed files with 132 additions and 10 deletions

View File

@@ -0,0 +1,18 @@
public class Subject {
private int myInt;
public void wp(int <caret>p) {
myInt += p;
}
}
class User {
public static int ourStatic = 0;
public static final int OUR_CONST = 0;
private void oper() {
Subject subj = new Subject();
subj.wp(OUR_CONST);
subj.wp(ourStatic);
}
}