diff --git a/presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/thrift/StaticMetastoreLocator.java b/presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/thrift/StaticMetastoreLocator.java index 51f6440d3010..8f44af1a451a 100644 --- a/presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/thrift/StaticMetastoreLocator.java +++ b/presto-hive/src/main/java/io/prestosql/plugin/hive/metastore/thrift/StaticMetastoreLocator.java @@ -18,6 +18,7 @@ import io.prestosql.plugin.hive.authentication.HiveAuthenticationConfig.HiveMetastoreAuthenticationType; import org.apache.thrift.TException; +import javax.annotation.Nullable; import javax.inject.Inject; import java.net.URI; @@ -51,7 +52,7 @@ public StaticMetastoreLocator(StaticMetastoreConfig config, HiveAuthenticationCo hiveAuthenticationConfig.getHiveMetastoreAuthenticationType()); } - public StaticMetastoreLocator(List metastoreUris, String metastoreUsername, ThriftMetastoreClientFactory clientFactory) + public StaticMetastoreLocator(List metastoreUris, @Nullable String metastoreUsername, ThriftMetastoreClientFactory clientFactory) { requireNonNull(metastoreUris, "metastoreUris is null"); checkArgument(!metastoreUris.isEmpty(), "metastoreUris must specify at least one URI");