From d16f39df0a6903cbc90594b7ba0f04ce581eb65f Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Fri, 5 May 2023 12:00:27 +0200 Subject: [PATCH] Use qualified name consistently Other Method options aren't statically imported. --- .../plugin/hive/metastore/CountingAccessHiveMetastore.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugin/trino-hive/src/test/java/io/trino/plugin/hive/metastore/CountingAccessHiveMetastore.java b/plugin/trino-hive/src/test/java/io/trino/plugin/hive/metastore/CountingAccessHiveMetastore.java index 0aa78877afd2..ad91417ba82c 100644 --- a/plugin/trino-hive/src/test/java/io/trino/plugin/hive/metastore/CountingAccessHiveMetastore.java +++ b/plugin/trino-hive/src/test/java/io/trino/plugin/hive/metastore/CountingAccessHiveMetastore.java @@ -33,9 +33,6 @@ import java.util.Set; import java.util.function.Function; -import static io.trino.plugin.hive.metastore.CountingAccessHiveMetastore.Method.GET_ALL_TABLES_FROM_DATABASE; -import static io.trino.plugin.hive.metastore.CountingAccessHiveMetastore.Method.GET_ALL_VIEWS_FROM_DATABASE; - @ThreadSafe public class CountingAccessHiveMetastore implements HiveMetastore @@ -118,7 +115,7 @@ public List getTablesWithParameter(String databaseName, String parameter @Override public List getAllViews(String databaseName) { - methodInvocations.add(GET_ALL_VIEWS_FROM_DATABASE); + methodInvocations.add(Method.GET_ALL_VIEWS_FROM_DATABASE); return delegate.getAllViews(databaseName); } @@ -347,7 +344,7 @@ public void updatePartitionStatistics(Table table, Map getAllTables(String databaseName) { - methodInvocations.add(GET_ALL_TABLES_FROM_DATABASE); + methodInvocations.add(Method.GET_ALL_TABLES_FROM_DATABASE); return delegate.getAllTables(databaseName); } }