extract method: break&continue statements inside selected cycle should not treated as exit statements from method

This commit is contained in:
anna
2009-10-19 21:31:55 +04:00
parent 21c828e805
commit 29ad3e617c
4 changed files with 47 additions and 4 deletions
@@ -0,0 +1,12 @@
class Test {
String foo(String[] args) {
<selection>
for(String arg : args) {
if (arg == null) continue;
System.out.println(arg);
}
if (args.length == 0) return null;
</selection>
return null;
}
}