Skip to content

Commit

Permalink
Make use of generics
Browse files Browse the repository at this point in the history
Signed-off-by: Nils Bandener <[email protected]>
  • Loading branch information
nibix committed Oct 2, 2024
1 parent 75deadf commit 3ed06c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,8 @@ private static String configToJson(CType<?> configType, Map<String, ? extends To
return builder.toString();
}

private static String singleEntryConfigToJson(CType<?> configType, String configurationRoot, ToXContentObject config) throws IOException {
private static String singleEntryConfigToJson(CType<?> configType, String configurationRoot, ToXContentObject config)
throws IOException {
XContentBuilder builder = XContentFactory.jsonBuilder();

builder.startObject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ void updateConfiguration(
SecurityDynamicConfiguration<RoleV7> rolesConfiguration
) {
if (rolesConfiguration != null) {
@SuppressWarnings("unchecked")
SecurityDynamicConfiguration<ActionGroupsV7> actionGroupsWithStatics = actionGroupsConfiguration != null
? DynamicConfigFactory.addStatics(actionGroupsConfiguration.clone())
: DynamicConfigFactory.addStatics(SecurityDynamicConfiguration.empty(CType.ACTIONGROUPS));
Expand Down

0 comments on commit 3ed06c7

Please sign in to comment.