Skip to content

Commit

Permalink
SignatureConceptTest.testCreateSignatureConcept_PCM_primitiveReturnType
Browse files Browse the repository at this point in the history
  • Loading branch information
h4uges committed Sep 25, 2023
1 parent 749c07c commit a580305
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public PcmModelEqualityHelper() {

@Override
protected boolean haveEqualFeature(EObject eObject1, EObject eObject2, EStructuralFeature feature) {
if (eObject1.eGet(feature) instanceof PrimitiveDataType dataType1
&& eObject2.eGet(feature) instanceof PrimitiveDataType dataType2) {
return dataType1.getType() == dataType2.getType();
if (eObject1.eGet(feature) instanceof PrimitiveDataType
&& eObject2.eGet(feature) instanceof PrimitiveDataType) {
return ((PrimitiveDataType)eObject1.eGet(feature)).getType() == ((PrimitiveDataType)eObject2.eGet(feature)).getType();
}

return super.haveEqualFeature(eObject1, eObject2, feature);
Expand Down

0 comments on commit a580305

Please sign in to comment.