mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
extract method: break&continue statements inside selected cycle should not treated as exit statements from method
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user