Skip to content

Commit 7d647db

Browse files
author
Max Stachon
committed
replace deprecated method call in DeepTypeConfStrategy
1 parent 40bbcd6 commit 7d647db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cddiff/src/main/java/de/monticore/cdconformance/conf/type/DeepTypeConfStrategy.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ protected boolean checkMethodConformance(ASTCDType concrete, ASTCDType refType)
4747

4848
@Override
4949
protected boolean checkAssocIncarnation(ASTCDType concrete, ASTCDType ref) {
50-
Set<ASTCDAssociation> conAssocSet = CDDiffUtil.getAllSuperTypes(concrete, conCD
51-
.getCDDefinition()).stream().flatMap(supertype -> CDDiffUtil.getReferencingAssociations(
52-
supertype, conCD).stream()).collect(Collectors.toSet());
50+
Set<ASTCDAssociation> conAssocSet = CDDiffUtil.getAllSuperTypes(concrete).stream().flatMap(
51+
supertype -> CDDiffUtil.getReferencingAssociations(supertype, conCD).stream()).collect(
52+
Collectors.toSet());
5353

5454
return checkAssocIncarnation(conAssocSet, CDDiffUtil.getReferencingAssociations(ref, refCD));
5555
}

0 commit comments

Comments
 (0)