Skip to content
This repository was archived by the owner on Feb 15, 2024. It is now read-only.

Commit a49ad09

Browse files
committed
resolving error with 'getImplementedClass' method
1 parent 28c1a26 commit a49ad09

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

dataformat-json/src/main/java/io/adminshell/aas/v3/dataformat/json/JsonDeserializer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ private void initTypeResolver() {
5353
typeResolver = new SimpleAbstractTypeResolver();
5454
ReflectionHelper.DEFAULT_IMPLEMENTATIONS
5555
.stream()
56-
.filter(x -> !customDeserializers.containsKey(x.getImplementedClass()))
57-
.forEach(x -> typeResolver.addMapping(x.getImplementedClass(), x.getImplementationClass()));
56+
.filter(x -> !customDeserializers.containsKey(x.getInterfaceType()))
57+
.forEach(x -> typeResolver.addMapping(x.getInterfaceType(), x.getImplementationType()));
5858
}
5959

6060
protected SimpleModule buildEnumModule() {

dataformat-json/src/main/java/io/adminshell/aas/v3/dataformat/json/JsonSerializer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import io.adminshell.aas.v3.dataformat.json.modeltype.ModelTypeProcessor;
1414
import io.adminshell.aas.v3.dataformat.json.serialization.EmbeddedDataSpecificationSerializer;
1515
import io.adminshell.aas.v3.model.AssetAdministrationShellEnvironment;
16-
import io.adminshell.aas.v3.model.DataSpecification;
1716
import io.adminshell.aas.v3.model.EmbeddedDataSpecification;
1817

1918
/**

0 commit comments

Comments
 (0)