mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +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,17 @@
|
||||
class Test {
|
||||
String foo(String[] args) {
|
||||
|
||||
if (newMethod(args)) return null;
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private boolean newMethod(String[] args) {
|
||||
for(String arg : args) {
|
||||
if (arg == null) continue;
|
||||
System.out.println(arg);
|
||||
}
|
||||
if (args.length == 0) return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user