From 4fdbcc1da62fde4af4ec88d62e0809019113b250 Mon Sep 17 00:00:00 2001 From: Holger Knoche Date: Thu, 21 Mar 2024 06:47:10 +0100 Subject: [PATCH] CheckStyle fixes --- .../core/apimodel/provider/ModelMerger.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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,