Skip to content

Commit

Permalink
SIDM-3692 Add some missing nonnull annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
dfourn committed Feb 13, 2020
1 parent 98e6861 commit ebed4d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import lombok.extern.slf4j.Slf4j;
import uk.gov.hmcts.reform.idam.health.probe.HealthProbe;

import javax.annotation.Nonnull;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
Expand Down Expand Up @@ -67,6 +68,7 @@ void setFileSystemInfo(FileSystemInfo fileSystemInfo) {
this.fileSystemInfo = fileSystemInfo;
}

@Nonnull
@Override
public String getName() {
return probeName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.springframework.stereotype.Component;
import uk.gov.hmcts.reform.idam.health.probe.HealthProbe;

import javax.annotation.Nonnull;
import java.io.IOException;
import java.util.Comparator;
import java.util.List;
Expand Down Expand Up @@ -68,6 +69,7 @@ public boolean probe() {
return false;
}

@Nonnull
@Override
public String getName() {
return probeProperties.getCommand().getName();
Expand Down

0 comments on commit ebed4d4

Please sign in to comment.