From c051abafe1050fbb66cb164c21c3cbae95d58077 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kla=CC=88hn?= Date: Tue, 12 Sep 2023 11:47:53 +0200 Subject: [PATCH] Fix conversion failure using yasson by increasing class visibility --- .../tweetwallfx/google/vision/ImageContentFilterStep.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/google-cloud/src/main/java/org/tweetwallfx/google/vision/ImageContentFilterStep.java b/google-cloud/src/main/java/org/tweetwallfx/google/vision/ImageContentFilterStep.java index 4a33cb50a..abbd6fb2b 100644 --- a/google-cloud/src/main/java/org/tweetwallfx/google/vision/ImageContentFilterStep.java +++ b/google-cloud/src/main/java/org/tweetwallfx/google/vision/ImageContentFilterStep.java @@ -205,7 +205,7 @@ public ImageContentFilterStep create(final FilterChainSettings.FilterStepDefinit * Param {@code checkRetweeted} a boolean flag controlling whether for a * retweet the retweeted Tweet is also checked */ - private static record Config( + public static record Config( Boolean checkRetweeted, SafeTypeConfig adult, SafeTypeConfig medical, @@ -213,7 +213,6 @@ private static record Config( SafeTypeConfig spoof, SafeTypeConfig violence) { - @SuppressWarnings("unused") public Config( final Boolean checkRetweeted, final SafeTypeConfig adult, @@ -230,7 +229,7 @@ public Config( } } - private static record SafeTypeConfig( + public static record SafeTypeConfig( GoogleLikelihood acceptableLikelyhood) { public SafeTypeConfig(final GoogleLikelihood acceptableLikelyhood) {