mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-22 01:19:50 +08:00
refactor: replace lambda with method reference
This commit is contained in:
@@ -253,11 +253,11 @@ public final class Language {
|
||||
TextStrings.LIST_LANGUAGES.parallelStream()
|
||||
.collect(
|
||||
Collectors.toConcurrentMap(
|
||||
s -> TextStrings.MAP_LANGUAGES.getInt(s),
|
||||
TextStrings.MAP_LANGUAGES::getInt,
|
||||
s -> loadTextMapFile(s, nameHashes)));
|
||||
List<Int2ObjectMap<String>> languageMaps =
|
||||
IntStream.range(0, TextStrings.NUM_LANGUAGES)
|
||||
.mapToObj(i -> mapLanguageMaps.get(i))
|
||||
.mapToObj(mapLanguageMaps::get)
|
||||
.collect(Collectors.toList());
|
||||
|
||||
Map<TextStrings, TextStrings> canonicalTextStrings = new HashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user