Collectors.toList() -> .toList()

master
mjkhan21 5 months ago
parent 01911e8a12
commit 036ffbb552

@ -73,7 +73,7 @@ public class Yml {
return getPrefixed(prefix).stream()
.map(entry -> entry.getValue().toString())
.collect(Collectors.toList());
.toList();
}
private List<Map.Entry<String, ?>> getPrefixed(String prefix) {
@ -125,6 +125,6 @@ public class Yml {
})
.collect(Collectors.toSet()).stream()
.map(this::getMap)
.collect(Collectors.toList());
.toList();
}
}
Loading…
Cancel
Save