revert toList changes in DescribeLogDirsMapper.java

This commit is contained in:
Shubhadeep Das 2023-08-05 15:33:34 +05:30
parent 605992dbbf
commit 0eae9242c3

View file

@ -22,7 +22,7 @@ public class DescribeLogDirsMapper {
mapEntry -> mapEntry.getValue().entrySet().stream()
.map(e -> toBrokerLogDirs(mapEntry.getKey(), e.getKey(), e.getValue()))
.toList()
).flatMap(Collection::stream).toList();
).flatMap(Collection::stream).collect(Collectors.toList());
}
private BrokersLogdirsDTO toBrokerLogDirs(Integer broker, String dirName,