mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
java completion: prefer 'return' if what comes after it can be parsed as a single expr statement (IDEA-195934)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
class Test {
|
||||
public static List<String> test() {
|
||||
ret<caret> wrap(foo(), foo());
|
||||
}
|
||||
|
||||
private static List<String> wrap(List<String> val1, List<String> val2) {
|
||||
return val1;
|
||||
}
|
||||
|
||||
public static <T> boolean retainAll(Collection<T> collection, Condition<? super T> condition) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user