fix[storage]: Fix record class generation protocol error.

This commit is contained in:
凌星 committed 2023-09-18 17:45:18 +08:00
1 parent 91a60a8fa8
commit 41bfac323e
4 files changed
+12 -7

No files matched your search

@@ -86,7 +86,7 @@ public class StorageInt<K, V> extends StorageObject<K, V> {
@Override
public Collection<V> getAll() {
return dataMap.values().stream().collect(Collectors.toUnmodifiableList());
return dataMap.values().stream().toList();
}
@Override
@@ -86,7 +86,7 @@ public class StorageLong<K, V> extends StorageObject<K, V> {
@Override
public Collection<V> getAll() {
return dataMap.values().stream().collect(Collectors.toUnmodifiableList());
return dataMap.values().stream().toList();
}
@Override
@@ -145,7 +145,7 @@ public class StorageObject<K, V> implements IStorage<K, V> {
@Override
public List<V> getList() {
Collection<V> all = getAll();
return all.stream().collect(Collectors.toUnmodifiableList());
return all.stream().toList();
}
@Override