Remove unnecessary null check on primitive types
@@ -68,15 +68,15 @@ public class QueryStatistics
this.queuedTime = requireNonNull(queuedTime, "queuedTime is null");
this.analysisTime = requireNonNull(analysisTime, "analysisTime is null");
this.distributedPlanningTime = requireNonNull(distributedPlanningTime, "distributedPlanningTime is null");
- this.peakMemoryBytes = requireNonNull(peakMemoryBytes, "peakMemoryBytes is null");
- this.totalBytes = requireNonNull(totalBytes, "totalBytes is null");
- this.totalRows = requireNonNull(totalRows, "totalRows is null");
+ this.peakMemoryBytes = peakMemoryBytes;
+ this.totalBytes = totalBytes;
+ this.totalRows = totalRows;
this.outputBytes = outputBytes;
this.outputRows = outputRows;
this.writtenBytes = writtenBytes;
this.writtenRows = writtenRows;
this.cumulativeMemory = cumulativeMemory;
- this.completedSplits = requireNonNull(completedSplits, "completedSplits is null");
+ this.completedSplits = completedSplits;
this.complete = complete;
this.cpuTimeDistribution = requireNonNull(cpuTimeDistribution, "cpuTimeDistribution is null");
this.operatorSummaries = requireNonNull(operatorSummaries, "operatorSummaries is null");
