From 0bff9af359268bfffbeb51e4ce755a2630e05403 Mon Sep 17 00:00:00 2001 From: Chris Wynne Date: Thu, 3 Oct 2024 10:54:41 +0100 Subject: [PATCH] PYIC-7476: Suppress circular dependency warning from Sonar Sonar got upset about a circular dependency between the Event interface and the ExitNestedJourneyEvent implementation. The interface references the implementation due to how we instructr Jackson to determine which classes to deserialise into. No idea why it suddenly has an issue with it... --- .../ipv/core/processjourneyevent/statemachine/events/Event.java | 1 + 1 file changed, 1 insertion(+) diff --git a/lambdas/process-journey-event/src/main/java/uk/gov/di/ipv/core/processjourneyevent/statemachine/events/Event.java b/lambdas/process-journey-event/src/main/java/uk/gov/di/ipv/core/processjourneyevent/statemachine/events/Event.java index 7d5b32a2a6..8fd5d6acfc 100644 --- a/lambdas/process-journey-event/src/main/java/uk/gov/di/ipv/core/processjourneyevent/statemachine/events/Event.java +++ b/lambdas/process-journey-event/src/main/java/uk/gov/di/ipv/core/processjourneyevent/statemachine/events/Event.java @@ -9,6 +9,7 @@ import java.util.Map; +@SuppressWarnings({"javaarchitecture:S7027"}) // Circular dependency with implementations @JsonTypeInfo(use = JsonTypeInfo.Id.DEDUCTION) @JsonSubTypes({ @JsonSubTypes.Type(value = BasicEvent.class),