Skip to content

Commit

Permalink
Mark parameter as @nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
findepi committed Oct 1, 2019
1 parent 1dd7ae9 commit ae41ee2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -51,7 +52,7 @@ public StaticMetastoreLocator(StaticMetastoreConfig config, HiveAuthenticationCo
hiveAuthenticationConfig.getHiveMetastoreAuthenticationType());
}

public StaticMetastoreLocator(List<URI> metastoreUris, String metastoreUsername, ThriftMetastoreClientFactory clientFactory)
public StaticMetastoreLocator(List<URI> metastoreUris, @Nullable String metastoreUsername, ThriftMetastoreClientFactory clientFactory)
{
requireNonNull(metastoreUris, "metastoreUris is null");
checkArgument(!metastoreUris.isEmpty(), "metastoreUris must specify at least one URI");
Expand Down

0 comments on commit ae41ee2

Please sign in to comment.