Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
java
/
java-tests
/
testData
/
refactoring
/
extractMethod
/
DecrementDifferentInnerFieldsDuplicate.java
blob: 0ee6e3ef76bb40dfb3f93f8fcf5027c9018111ce [
file
]
class
DecrementDifferentInnerFieldsDuplicate
{
class
C
{
int
x
;
int
y
;
}
private
void
foo
(
C a
,
C b
)
{
<
selection
>
if
(
a
.
x
>
0
)
{
bar
(
a
.
x
);
a
.
x
--;
}</
selection
>
if
(
b
.
y
>
0
)
{
bar
(
b
.
y
);
b
.
y
--;
}
}
private
void
bar
(
int
i
)
{
}
}