Skip to content

Commit 4a59b12

Browse files
FriedJannikCopilot
andauthored
Update basyx.aasservice/basyx.aasservice-backend-inmemory/src/main/java/org/eclipse/digitaltwin/basyx/aasservice/backend/InMemoryAasBackend.java
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a71caa1 commit 4a59b12

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • basyx.aasservice/basyx.aasservice-backend-inmemory/src/main/java/org/eclipse/digitaltwin/basyx/aasservice/backend

basyx.aasservice/basyx.aasservice-backend-inmemory/src/main/java/org/eclipse/digitaltwin/basyx/aasservice/backend/InMemoryAasBackend.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public InMemoryAasBackend() {
5959
@Override
6060
public CursorResult<List<AssetAdministrationShell>> getShells(List<SpecificAssetId> assetIds, String idShort, PaginationInfo pInfo) {
6161
Iterable<AssetAdministrationShell> iterable = getAllAas(assetIds, idShort);
62-
List<AssetAdministrationShell> allAas = StreamSupport.stream(iterable.spliterator(), false).toList();
62+
List<AssetAdministrationShell> allAas = StreamSupport.stream(iterable.spliterator(), false).collect(Collectors.toList());
6363

6464
TreeMap<String, AssetAdministrationShell> aasMap = allAas.stream().collect(Collectors.toMap(AssetAdministrationShell::getId, aas -> aas, (a, b) -> a, TreeMap::new));
6565

0 commit comments

Comments
 (0)