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
blob
1893d8c697ab252c125991896701997c828effdd
1
public class
Subject
{
2
private int
myInt
;
3
4
public void
wp
(
int
<
caret
>
p
) {
5
myInt
+=
p
;
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
(
OUR_CONST
);
16
subj
.
wp
(
OUR_CONST2
);
17
}
18
}