Skip to content

Commit

Permalink
CheckStyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerknoche committed Mar 21, 2024
1 parent 6fad2e8 commit 4fdbcc1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,16 +192,16 @@ private void assertUniqueInternalName(UserDefinedType<ProviderApiDefinition> 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<ProviderRecordType> concretePredecessor = inType.findFirstPredecessorMatching(ProviderRecordType::isConcrete);
abstractness = (concretePredecessor.isPresent()) ? Abstract.NO : Abstract.YES;
Optional<ProviderRecordType> 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,
Expand Down

0 comments on commit 4fdbcc1

Please sign in to comment.