Skip to content

Commit 7e8ef0d

Browse files
committed
ST6RI-897 Handled TODO in check ofg validateDefVariationOwnedFeatureMem.
1 parent 69f5834 commit 7e8ef0d

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

org.omg.sysml.xtext/src/org/omg/sysml/xtext/validation/SysMLValidator.xtend

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -470,11 +470,7 @@ class SysMLValidator extends KerMLValidator {
470470
if (definition.isVariation) {
471471
// validateDefinitionVariationOwnedFeatureMembership
472472
for (mem: definition.ownedFeatureMembership) {
473-
// NOTE: Need to allow parameters and objectives because they are currently physically inserted by transform implementation.
474-
// TODO: Add allowance of parameters and objectives in variations to spec? Or remove when possible?
475-
if (!(mem instanceof ParameterMembership || mem instanceof ObjectiveMembership)) {
476-
error(INVALID_DEFINITION_VARIATION_MEMBERSHIP_MSG, mem, null, INVALID_DEFINITION_VARIATION_MEMBERSHIP)
477-
}
473+
error(INVALID_DEFINITION_VARIATION_MEMBERSHIP_MSG, mem, null, INVALID_DEFINITION_VARIATION_MEMBERSHIP)
478474
}
479475

480476
// validateDefinitionVariationSpecialization

0 commit comments

Comments
 (0)