java completion: prefer 'return' if what comes after it can be parsed as a single expr statement (IDEA-195934)

This commit is contained in:
peter
2018-11-13 19:37:32 +01:00
parent 552582bd8a
commit 7f957f2064
3 changed files with 35 additions and 10 deletions
@@ -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;
}
}