Skip to content

Commit

Permalink
element tagged value doesn't need special treatment
Browse files Browse the repository at this point in the history
  • Loading branch information
Doris Lam committed Apr 10, 2023
1 parent ad5b1db commit e19c624
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/openmbee/mdk/emf/EMFExporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ private enum Processor {
),
TAGGEDVALUE_POST(
(element, project, objectNode) -> {
if (!(element instanceof TaggedValue)) {
if (!(element instanceof TaggedValue) || element instanceof ElementTaggedValue) {
return objectNode;
}
TaggedValue v = (TaggedValue)element;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/openmbee/mdk/emf/EMFImporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public static class PreProcessor {
),
TAGGED_VALUE = new PreProcessor(
(objectNode, project, strict, element) -> {
if (!(element instanceof TaggedValue)) {
if (!(element instanceof TaggedValue) || element instanceof ElementTaggedValue) {
return element;
}
ArrayNode value = (ArrayNode)objectNode.get("value");
Expand Down

This file was deleted.

0 comments on commit e19c624

Please sign in to comment.