Skip to content

Commit

Permalink
NonNull and final on main
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Aug 21, 2024
1 parent b5dc8cd commit fc86948
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions server/src/main/java/com/hedera/block/server/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.hedera.block.server;

import edu.umd.cs.findbugs.annotations.NonNull;
import java.io.IOException;

/** Main class for the block node server */
Expand All @@ -34,9 +35,10 @@ public static void main(final String[] args) {

LOGGER.log(System.Logger.Level.INFO, "Starting BlockNode Server");

BlockNodeAppServerInjectionComponent daggerComponent =
@NonNull
final BlockNodeAppServerInjectionComponent daggerComponent =
DaggerBlockNodeAppServerInjectionComponent.create();
BlockNodeApp server = daggerComponent.getBlockNodeAppServer();
@NonNull final BlockNodeApp server = daggerComponent.getBlockNodeAppServer();

try {
server.startServer();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
@Module
public interface HealthInjectionModule {

/** Binds the health service to the health service implementation.
/**
* Binds the health service to the health service implementation.
*
* @param healthService needs a health service implementation
* @return the health service implementation
Expand Down

0 comments on commit fc86948

Please sign in to comment.