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

Commit 6c12731

Browse files
Fix enum mapping
1 parent b839481 commit 6c12731

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • dataformat-aml/src/main/java/io/adminshell/aas/v3/dataformat/aml/deserialization/mappers

dataformat-aml/src/main/java/io/adminshell/aas/v3/dataformat/aml/deserialization/mappers/EnumMapper.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ public class EnumMapper extends DefaultMapper<Enum> {
2727
public Enum map(AmlParser parser, MappingContext context) throws MappingException {
2828
if (parser == null
2929
|| parser.getCurrent() == null
30-
|| context.getProperty() == null
31-
|| !AttributeType.class.isAssignableFrom(parser.getCurrent().getClass())) {
30+
|| context.getProperty() == null) {
3231
return null;
3332
}
3433
AttributeType attribute = findAttribute(parser.getCurrent(), context.getProperty(), context);

0 commit comments

Comments
 (0)