Skip to content

Commit

Permalink
Fixed import bug where mandatory features are considered optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ekuiter committed Nov 19, 2019
1 parent 81c068f commit f67e5e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ else if (feature.getStructure().isAlternative())

featureMap.put(Kernel.keyword("parent-ID"),
feature.getStructure().getParent() == null ? null : feature.getStructure().getParent().getFeature().getName());
featureMap.put(Kernel.keyword("optional?"), feature.getStructure().isMandatory());
featureMap.put(Kernel.keyword("optional?"), !feature.getStructure().isMandatory());
featureMap.put(Kernel.keyword("name"), de.ovgu.spldev.varied.util.FeatureUtils.getFeatureName(feature));
featureMap.put(Kernel.keyword("hidden?"), feature.getStructure().isHidden());
featureMap.put(Kernel.keyword("abstract?"), feature.getStructure().isAbstract());
Expand Down

0 comments on commit f67e5e2

Please sign in to comment.