change test data to be more realistic

This commit is contained in:
Anna Kozlova
2018-06-01 11:15:29 +03:00
parent 2c5117ba22
commit db4d62e485
2 changed files with 14 additions and 4 deletions

View File

@@ -1,9 +1,14 @@
// "Convert to local" "true"
class Test {
int getFoo1() {
int getFoo1(boolean f) {
int myFoo;
while (true) myFoo = 1;
if (f) {
myFoo = 1;
}
else {
myFoo = 2;
}
return myFoo;
}
}

View File

@@ -2,8 +2,13 @@
class Test {
private int my<caret>Foo;
int getFoo1() {
while (true) myFoo = 1;
int getFoo1(boolean f) {
if (f) {
myFoo = 1;
}
else {
myFoo = 2;
}
return myFoo;
}
}