Skip to content
Snippets Groups Projects
Commit b26fd17b authored by Dominique Marcadet's avatar Dominique Marcadet
Browse files

remove incorrect warning on missing type of a DataAttribute

parent 54b54133
Branches
No related tags found
1 merge request!30Resolve "Incorrect warning "type is missing for ENUMERATED" in DataAttribute"
Pipeline #4879 passed
......@@ -3725,7 +3725,18 @@ public class DataAttributeImpl extends DocumentedClassImpl implements DataAttrib
}
}
else {
console.warning( messagePrefix + "type is missing for " + getTypeKind() );
// type for ENUMERATED may be missing if CDC has enumParameterized="true"
if(( getTypeKind().getValue() == DefinedAttributeTypeKind.ENUMERATED_VALUE )) {
if( getParentCDC().isEnumParameterized() ) {
console.info( messagePrefix + "type is missing for " + getTypeKind() + " but enumParameterized in parent CDC is true" );
}
else {
console.warning( messagePrefix + "type is missing for " + getTypeKind() + " and enumParameterized in parent CDC is false" );
}
}
else {
console.warning( messagePrefix + "type is missing for " + getTypeKind() );
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment