Skip to content

Commit

Permalink
checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
ununhexium committed Sep 3, 2024
1 parent 40be438 commit d1bf475
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import de.sovity.edc.extension.contacttermination.ContractTerminationEvent;
import de.sovity.edc.extension.contacttermination.ContractTerminationObserver;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import lombok.val;
import org.eclipse.edc.spi.event.EventEnvelope;
import org.eclipse.edc.spi.event.EventRouter;
Expand Down Expand Up @@ -57,13 +56,14 @@ private void sendMessage(String logEvent, ContractTerminationEvent contractTermi
}
}

private @NotNull MdsContractTerminationEvent buildLogEvent(String contractAgreementId, LogEntry logEntry) throws JsonProcessingException {
val message = objectMapper.writeValueAsString(logEntry);
return new MdsContractTerminationEvent(
UuidGenerator.INSTANCE.generate().toString(),
contractAgreementId,
message
);
private @NotNull MdsContractTerminationEvent buildLogEvent(String contractAgreementId, LogEntry logEntry)
throws JsonProcessingException {
val message = objectMapper.writeValueAsString(logEntry);
return new MdsContractTerminationEvent(
UuidGenerator.INSTANCE.generate().toString(),
contractAgreementId,
message
);
}

private void publishEvent(MdsContractTerminationEvent event) {
Expand Down

0 comments on commit d1bf475

Please sign in to comment.