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