repo.or.cz
/
fedora-idea.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
inline parameter: make it public; allow to inline refs to the same non final fields...
[fedora-idea.git]
/
java
/
java-tests
/
testData
/
refactoring
/
inlineParameter
/
Ref2ConstantsWithTheSameValue.java.after
blob
692154d24800a327c57e5052254d269e5cff70c9
1
public class Subject {
2
private int myInt;
3
4
public void wp() {
5
myInt += User.OUR_CONST;
6
}
7
}
8
9
class User {
10
public static final int OUR_CONST = 2;
11
public static final int OUR_CONST2 = 2;
12
13
private void oper() {
14
Subject subj = new Subject();
15
subj.wp();
16
subj.wp();
17
}
18
}