From bf402a5c60646d43bdcfe28661163b4142993135 Mon Sep 17 00:00:00 2001 From: Dain Sundstrom Date: Tue, 6 Oct 2020 17:27:14 -0700 Subject: [PATCH] Fix warnings in FileBasedSystemAccessControl --- .../plugin/base/security/FileBasedSystemAccessControl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/presto-plugin-toolkit/src/main/java/io/prestosql/plugin/base/security/FileBasedSystemAccessControl.java b/presto-plugin-toolkit/src/main/java/io/prestosql/plugin/base/security/FileBasedSystemAccessControl.java index 817e6f12067ae..da100a85a9336 100644 --- a/presto-plugin-toolkit/src/main/java/io/prestosql/plugin/base/security/FileBasedSystemAccessControl.java +++ b/presto-plugin-toolkit/src/main/java/io/prestosql/plugin/base/security/FileBasedSystemAccessControl.java @@ -170,14 +170,14 @@ public SystemAccessControl create(Map config) return create(configFileName); } - private PrestoException invalidRefreshPeriodException(Map config, String configFileName) + private static PrestoException invalidRefreshPeriodException(Map 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);