Skip to content

Commit

Permalink
[480] Fix inheritance support in DomainConverter
Browse files Browse the repository at this point in the history
The previous condition did not account for the sentinel element.

Bug: #480
Signed-off-by: Pierre-Charles David <pierre-charles.david@obeo.fr>
  • Loading branch information
pcdavid committed May 26, 2021
1 parent ecf0aa9 commit 803bd05
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public Optional<EPackage> convert(Domain domain) {
leftToConvert.addLast(candidate);
}
}
if (leftToConvert.isEmpty()) {
if (leftToConvert.size() == 1) {
for (Entity entity : domain.getTypes()) {
EClass eClass = convertedTypes.get(entity);
for (Relation relation : entity.getRelations()) {
Expand Down

0 comments on commit 803bd05

Please sign in to comment.