StreamToLoopInspection refactoring: strings replaced with actual PsiType's (as they are valid now); removed unnecessary code due to all PsiExpressions are also valid

This commit is contained in:
Tagir Valeev
2017-03-21 14:21:29 +07:00
parent 69632b09da
commit f764692965
12 changed files with 183 additions and 214 deletions

View File

@@ -130,8 +130,8 @@ public class Main {
private static List<String> testMethodRef(List<List<String>> list) {
List<String> result = new ArrayList<>();
for (List<String> strings : list) {
for (String s : strings) {
result.add(s);
for (String string : strings) {
result.add(string);
}
}
return result;
@@ -140,8 +140,8 @@ public class Main {
private static List<String> testMethodRef2(List<String[]> list) {
List<String> result = new ArrayList<>();
for (String[] strings : list) {
for (String s : strings) {
result.add(s);
for (String t : strings) {
result.add(t);
}
}
return result;