From ae41ee2d431b0a139f7543f64db0402541644de5 Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Tue, 1 Oct 2019 10:20:50 +0200 Subject: [PATCH] Mark parameter as @Nullable --- .../plugin/hive/metastore/thrift/StaticMetastoreLocator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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");