From 467e61587969f3ff600d4a8244c7c86500a61449 Mon Sep 17 00:00:00 2001 From: Thomas Poignant Date: Mon, 20 Jan 2025 14:46:48 +0100 Subject: [PATCH] fix linting Signed-off-by: Thomas Poignant --- .../gofeatureflag/GoFeatureFlagProviderOptions.java | 3 +-- .../controller/GoFeatureFlagController.java | 1 - .../providers/gofeatureflag/hook/events/Events.java | 12 ++++++++++++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/GoFeatureFlagProviderOptions.java b/providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/GoFeatureFlagProviderOptions.java index 3239924f1..008c1943c 100644 --- a/providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/GoFeatureFlagProviderOptions.java +++ b/providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/GoFeatureFlagProviderOptions.java @@ -2,9 +2,9 @@ import com.github.benmanes.caffeine.cache.Caffeine; import dev.openfeature.sdk.ProviderEvaluation; +import java.util.Map; import lombok.Builder; import lombok.Getter; -import java.util.Map; /** GoFeatureFlagProviderOptions contains the options to initialise the provider. */ @Builder @@ -95,7 +95,6 @@ public class GoFeatureFlagProviderOptions { /** * (optional) exporterMetadata is the metadata we send to the GO Feature Flag relay proxy when we report the * evaluation data usage. - * * ‼️Important: If you are using a GO Feature Flag relay proxy before version v1.41.0, the information of this * field will not be added to your feature events. */ diff --git a/providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/controller/GoFeatureFlagController.java b/providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/controller/GoFeatureFlagController.java index a0003961d..1cd44a30f 100644 --- a/providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/controller/GoFeatureFlagController.java +++ b/providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/controller/GoFeatureFlagController.java @@ -31,7 +31,6 @@ import dev.openfeature.sdk.exceptions.TypeMismatchError; import java.io.IOException; import java.net.HttpURLConnection; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; diff --git a/providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/hook/events/Events.java b/providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/hook/events/Events.java index 83781533d..52c6e4e98 100644 --- a/providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/hook/events/Events.java +++ b/providers/go-feature-flag/src/main/java/dev/openfeature/contrib/providers/gofeatureflag/hook/events/Events.java @@ -9,9 +9,21 @@ /** Events data. */ @Getter public class Events { + /** + * meta contains the metadata of the events to be sent along the events. + */ private final Map meta = new HashMap<>(); + + /** + * list of events to be sent to the data collector to collect the evaluation data. + */ private final List events; + /** + * Constructor. + * @param events - list of events to be sent to the data collector to collect the evaluation data. + * @param exporterMetadata - metadata of the events to be sent along the events. + */ public Events(List events, Map exporterMetadata) { this.events = new ArrayList<>(events); this.meta.put("provider", "java");