mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
Convert to single return: fix for incorrect code
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// "Transform body to single exit-point form" "true"
|
||||
class Test {
|
||||
String test(String s) {
|
||||
return "foo";
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// "Transform body to single exit-point form" "true"
|
||||
class Test {
|
||||
String <caret>test(String s) {
|
||||
return "foo";
|
||||
return "bar";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user