blob: 6bf0da8b390e459d025d2d5b3676c7f05304a6ce [file] [log] [blame]
// "Make 'victim' return 'boolean'" "true"
import java.util.*;
public class External {
void m1() {
if (new Out().victim(null)) {
System.out.println("Something");
}
}
}
class Out {
public boolean victim(final Collection coll) {
if (System.currentTimeMillis() > 2321321L) {
final boolean value;
return value;
}
final boolean inTheMiddle = false;
for (Object o : coll) {
return inTheMiddle;
}
for (Iterator iterator = coll.iterator(); iterator.hasNext();) {
Object o = (Object) iterator.next();
boolean insideFor = false;
return inTheMiddle;
}
return <caret><selection>inTheMiddle</selection>;
}
}