diff --git a/gutta-apievolution-core/src/main/java/gutta/apievolution/core/apimodel/provider/ModelMerger.java b/gutta-apievolution-core/src/main/java/gutta/apievolution/core/apimodel/provider/ModelMerger.java index 49af770..eefbc76 100644 --- a/gutta-apievolution-core/src/main/java/gutta/apievolution/core/apimodel/provider/ModelMerger.java +++ b/gutta-apievolution-core/src/main/java/gutta/apievolution/core/apimodel/provider/ModelMerger.java @@ -192,16 +192,16 @@ private void assertUniqueInternalName(UserDefinedType typ this.knownTypeNames.add(type.getInternalName()); } - private ProviderRecordType convertRecordType(ProviderRecordType inType) { + private ProviderRecordType convertRecordType(ProviderRecordType inType) { Abstract abstractness; - + // The type is only abstract if it is abstract in all revisions if (inType.isAbstract()) { - Optional concretePredecessor = inType.findFirstPredecessorMatching(ProviderRecordType::isConcrete); - abstractness = (concretePredecessor.isPresent()) ? Abstract.NO : Abstract.YES; + Optional concretePredecessor = inType.findFirstPredecessorMatching(ProviderRecordType::isConcrete); + abstractness = (concretePredecessor.isPresent()) ? Abstract.NO : Abstract.YES; } else { abstractness = Abstract.NO; - } + } if (inType.isException()) { return this.mergedDefinition.newExceptionType(inType.getPublicName(), inType.getInternalName(), inType.getTypeId(), abstractness,