Skip to content

Commit

Permalink
adding requireNonNull
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Jan 9, 2025
1 parent 4c4abf9 commit 080a30a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
package com.hedera.block.server.verification.service;

import static java.lang.System.Logger.Level.WARNING;
import static java.util.Objects.requireNonNull;

import com.hedera.block.server.metrics.BlockNodeMetricTypes;
import com.hedera.block.server.metrics.MetricsService;
Expand Down Expand Up @@ -35,8 +36,8 @@ public class BlockVerificationServiceImpl implements BlockVerificationService {
public BlockVerificationServiceImpl(
@NonNull final MetricsService metricsService,
@NonNull final BlockVerificationSessionFactory sessionFactory) {
this.metricsService = metricsService;
this.sessionFactory = sessionFactory;
this.metricsService = requireNonNull(metricsService);
this.sessionFactory = requireNonNull(sessionFactory);
}

/**
Expand Down

0 comments on commit 080a30a

Please sign in to comment.