Skip to content

Commit

Permalink
fix: make annotations consistent in inheritence hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
jbee committed Jun 19, 2024
1 parent 7fad9b6 commit de71ae2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
*/
package org.hisp.dhis.scheduling;

import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;

/**
Expand Down Expand Up @@ -54,7 +55,7 @@ public void completedProcess(String summary, Object... args) {
}

@Override
public void failedProcess(@Nonnull String error, Object... args) {
public void failedProcess(@CheckForNull String error, Object... args) {
// as the name said we do nothing
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.concurrent.atomic.AtomicBoolean;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import lombok.RequiredArgsConstructor;
import org.hisp.dhis.system.notification.NotificationDataType;
Expand Down Expand Up @@ -80,7 +81,7 @@ public void completedProcess(String summary, Object... args) {
}

@Override
public void failedProcess(@Nonnull String error, Object... args) {
public void failedProcess(@CheckForNull String error, Object... args) {
notifier.notify(jobId, NotificationLevel.ERROR, format(error, args), true);
}

Expand Down

0 comments on commit de71ae2

Please sign in to comment.