Skip to content

Commit

Permalink
Fix warnings in FileBasedSystemAccessControl
Browse files Browse the repository at this point in the history
  • Loading branch information
dain committed Oct 7, 2020
1 parent 46b77aa commit bf402a5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,14 @@ public SystemAccessControl create(Map<String, String> config)
return create(configFileName);
}

private PrestoException invalidRefreshPeriodException(Map<String, String> config, String configFileName)
private static PrestoException invalidRefreshPeriodException(Map<String, String> config, String configFileName)
{
return new PrestoException(
CONFIGURATION_INVALID,
format("Invalid duration value '%s' for property '%s' in '%s'", config.get(SECURITY_REFRESH_PERIOD), SECURITY_REFRESH_PERIOD, configFileName));
}

private SystemAccessControl create(String configFileName)
private static SystemAccessControl create(String configFileName)
{
FileBasedSystemAccessControlRules rules = parseJson(Paths.get(configFileName), FileBasedSystemAccessControlRules.class);

Expand Down

0 comments on commit bf402a5

Please sign in to comment.