Skip to content

Commit

Permalink
Use requireNonNull
Browse files Browse the repository at this point in the history
  • Loading branch information
sopel39 committed Oct 7, 2020
1 parent 75eb16c commit a4f3c45
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ public DynamicFiltersStats(
@JsonProperty("totalDynamicFilters") int totalDynamicFilters,
@JsonProperty("dynamicFiltersCompleted") int dynamicFiltersCompleted)
{
this.dynamicFilterDomainStats = dynamicFilterDomainStats;
this.dynamicFilterDomainStats = requireNonNull(dynamicFilterDomainStats, "dynamicFilterDomainStats is null");
this.lazyDynamicFilters = lazyDynamicFilters;
this.replicatedDynamicFilters = replicatedDynamicFilters;
this.totalDynamicFilters = totalDynamicFilters;
Expand Down Expand Up @@ -548,11 +548,11 @@ public DynamicFilterDomainStats(
@JsonProperty("discreteValuesCount") int discreteValuesCount,
@JsonProperty("collectionDuration") Optional<Duration> collectionDuration)
{
this.dynamicFilterId = dynamicFilterId;
this.simplifiedDomain = simplifiedDomain;
this.dynamicFilterId = requireNonNull(dynamicFilterId, "dynamicFilterId is null");
this.simplifiedDomain = requireNonNull(simplifiedDomain, "simplifiedDomain is null");
this.rangeCount = rangeCount;
this.discreteValuesCount = discreteValuesCount;
this.collectionDuration = collectionDuration;
this.collectionDuration = requireNonNull(collectionDuration, "collectionDuration is null");
}

@JsonProperty
Expand Down

0 comments on commit a4f3c45

Please sign in to comment.