Skip to content

Commit

Permalink
Test queried only fields
Browse files Browse the repository at this point in the history
  • Loading branch information
loicottet committed Jan 29, 2024
1 parent b457b44 commit b124c0a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1169,4 +1169,10 @@ private static void requireNonNull(Object[] values, String kind) {
private static String nullErrorMessage(String kind) {
return "Cannot register null value as " + kind + " for reflection. Please ensure that all values you register are not null.";
}

public static class TestBackdoor {
public static void registerField(ReflectionDataBuilder reflectionDataBuilder, boolean queriedOnly, Field field) {
reflectionDataBuilder.registerInternal(ConfigurationCondition.alwaysTrue(), queriedOnly, field);
}
}
}

0 comments on commit b124c0a

Please sign in to comment.