From dcfefc75af1dbd93f8647e24a09053d2638d2f57 Mon Sep 17 00:00:00 2001 From: Reino Ruusu Date: Fri, 9 Oct 2020 09:02:28 +0300 Subject: [PATCH] Avoid exception for non-unique keys in tech type table gitlab #93 Change-Id: I6c258b4dd11403419a7a1dd986ec449ea7602e4e --- .../district/network/techtype/requests/TechTypeTableData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.simantics.district.network/src/org/simantics/district/network/techtype/requests/TechTypeTableData.java b/org.simantics.district.network/src/org/simantics/district/network/techtype/requests/TechTypeTableData.java index 60929edd..e09db0ac 100644 --- a/org.simantics.district.network/src/org/simantics/district/network/techtype/requests/TechTypeTableData.java +++ b/org.simantics.district.network/src/org/simantics/district/network/techtype/requests/TechTypeTableData.java @@ -63,7 +63,7 @@ public class TechTypeTableData extends BinaryRead r.containsKey(keyName)) - .collect(Collectors.toMap(r -> r.get(keyName), r -> r)); + .collect(Collectors.toMap(r -> r.get(keyName), r -> r, (p, q) -> p)); } private String getKeyName(ReadGraph graph, Resource table) throws DatabaseException { -- 2.47.1