mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fixed redundant flatMap step warnings
GitOrigin-RevId: 5468f6bd824280340d6680ef9291cea7e5e71c64
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fecfdd52f4
commit
f510432d7f
+1
-2
@@ -175,8 +175,7 @@ public class YAMLKeysSearchEverywhereContributor implements SearchEverywhereCont
|
||||
.stream()
|
||||
.sorted()
|
||||
.map(idx -> priority.get(idx))
|
||||
.map(found -> found.stream().sorted())
|
||||
.flatMap(s -> s)
|
||||
.flatMap(found -> found.stream().sorted())
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
|
||||
@@ -80,8 +80,7 @@ public abstract class PatchTestCase extends UpdaterTestCase {
|
||||
assertThat(list).isEqualTo(groups.stream().flatMap(Collection::stream).collect(toList()));
|
||||
// sorts group elements and concatenates groups into a list
|
||||
return groups.stream()
|
||||
.map(elements -> elements.stream().sorted(sorter))
|
||||
.flatMap(stream -> stream)
|
||||
.flatMap(elements -> elements.stream().sorted(sorter))
|
||||
.collect(toList());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user