Skip to content

Commit

Permalink
Fix conversion failure using yasson by increasing class visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mklaehn committed Sep 12, 2023
1 parent d1095b9 commit c051aba
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,14 @@ 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,
SafeTypeConfig racy,
SafeTypeConfig spoof,
SafeTypeConfig violence) {

@SuppressWarnings("unused")
public Config(
final Boolean checkRetweeted,
final SafeTypeConfig adult,
Expand All @@ -230,7 +229,7 @@ public Config(
}
}

private static record SafeTypeConfig(
public static record SafeTypeConfig(
GoogleLikelihood acceptableLikelyhood) {

public SafeTypeConfig(final GoogleLikelihood acceptableLikelyhood) {
Expand Down

0 comments on commit c051aba

Please sign in to comment.