mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
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:
+18
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user