Add requireNonNull checks to ConnectorManager
@@ -144,26 +144,26 @@ public class ConnectorManager
DeterminismEvaluator determinismEvaluator,
FilterStatsCalculator filterStatsCalculator)
{
- this.metadataManager = metadataManager;
- this.catalogManager = catalogManager;
- this.accessControlManager = accessControlManager;
- this.splitManager = splitManager;
- this.pageSourceManager = pageSourceManager;
- this.indexManager = indexManager;
- this.partitioningProviderManager = partitioningProviderManager;
- this.connectorPlanOptimizerManager = connectorPlanOptimizerManager;
- this.pageSinkManager = pageSinkManager;
- this.handleResolver = handleResolver;
- this.nodeManager = nodeManager;
- this.typeManager = typeManager;
- this.pageSorter = pageSorter;
- this.pageIndexerFactory = pageIndexerFactory;
- this.nodeInfo = nodeInfo;
- this.transactionManager = transactionManager;
- this.domainTranslator = domainTranslator;
- this.predicateCompiler = predicateCompiler;
- this.determinismEvaluator = determinismEvaluator;
- this.filterStatsCalculator = filterStatsCalculator;
+ this.metadataManager = requireNonNull(metadataManager, "metadataManager is null");
+ this.catalogManager = requireNonNull(catalogManager, "catalogManager is null");
+ this.accessControlManager = requireNonNull(accessControlManager, "accessControlManager is null");
+ this.splitManager = requireNonNull(splitManager, "splitManager is null");
+ this.pageSourceManager = requireNonNull(pageSourceManager, "pageSourceManager is null");
+ this.indexManager = requireNonNull(indexManager, "indexManager is null");
+ this.partitioningProviderManager = requireNonNull(partitioningProviderManager, "partitioningProviderManager is null");
+ this.connectorPlanOptimizerManager = requireNonNull(connectorPlanOptimizerManager, "connectorPlanOptimizerManager is null");
+ this.pageSinkManager = requireNonNull(pageSinkManager, "pageSinkManager is null");
+ this.handleResolver = requireNonNull(handleResolver, "handleResolver is null");
+ this.nodeManager = requireNonNull(nodeManager, "nodeManager is null");
+ this.typeManager = requireNonNull(typeManager, "typeManager is null");
+ this.pageSorter = requireNonNull(pageSorter, "pageSorter is null");
+ this.pageIndexerFactory = requireNonNull(pageIndexerFactory, "pageIndexerFactory is null");
+ this.nodeInfo = requireNonNull(nodeInfo, "nodeInfo is null");
+ this.transactionManager = requireNonNull(transactionManager, "transactionManager is null");
+ this.domainTranslator = requireNonNull(domainTranslator, "domainTranslator is null");
+ this.predicateCompiler = requireNonNull(predicateCompiler, "predicateCompiler is null");
+ this.determinismEvaluator = requireNonNull(determinismEvaluator, "determinismEvaluator is null");
+ this.filterStatsCalculator = requireNonNull(filterStatsCalculator, "filterStatsCalculator is null");
}
@PreDestroy
