mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
make method return: do not add return statement when control flow found a problem (IDEA-95738)
(cherry picked from commit b4e5b7d23c22f692da029a95d6718359fac577cc)
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// "Make 'getDrawerAppsList' return 'java.util.ArrayList<ResolveInfo>'" "true"
|
||||
import java.util.*;
|
||||
class Test {
|
||||
|
||||
public static ArrayList<ResolveInfo> getDrawerAppsList(ArrayList<ResolveInfo> appsList) {
|
||||
for (ResolveInfo appInfo : appsList) {
|
||||
if () {
|
||||
|
||||
appsList.remove(appInfo);
|
||||
}
|
||||
}
|
||||
|
||||
return appsList;
|
||||
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// "Make 'getDrawerAppsList' return 'java.util.ArrayList<ResolveInfo>'" "true"
|
||||
import java.util.*;
|
||||
class Test {
|
||||
|
||||
public static List<AppInfo> getDrawerAppsList(ArrayList<ResolveInfo> appsList) {
|
||||
for (ResolveInfo appInfo : appsList) {
|
||||
if () {
|
||||
|
||||
appsList.remove(appInfo);
|
||||
}
|
||||
}
|
||||
|
||||
return <caret>appsList;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user