Skip to content

Commit 041aff1

Browse files
515 - spotBugs & spotlessJavaCheck
1 parent 88bf8ea commit 041aff1

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

server/libs/core/error/error-api/src/main/java/com/bytechef/error/Errorable.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
package com.bytechef.error;
2020

21+
import edu.umd.cs.findbugs.annotations.Nullable;
22+
2123
/**
2224
* An interface which marks an object as being able to provide {@link ExecutionError} status about itself.
2325
*
@@ -27,5 +29,6 @@
2729
public interface Errorable {
2830

2931
/** Returns the error associated with the object. */
32+
@Nullable
3033
ExecutionError getError();
3134
}

server/libs/modules/task-dispatchers/on-error/src/main/java/com/bytechef/task/dispatcher/on/error/OnErrorTaskDispatcher.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import com.bytechef.atlas.file.storage.TaskFileStorage;
3333
import com.bytechef.commons.util.MapUtils;
3434
import com.bytechef.evaluator.Evaluator;
35+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
3536
import java.time.Instant;
3637
import java.util.Collections;
3738
import java.util.List;
@@ -52,6 +53,7 @@ public class OnErrorTaskDispatcher implements TaskDispatcher<TaskExecution>, Tas
5253
private final TaskExecutionService taskExecutionService;
5354
private final TaskFileStorage taskFileStorage;
5455

56+
@SuppressFBWarnings("EI")
5557
public OnErrorTaskDispatcher(
5658
ContextService contextService, Evaluator evaluator, ApplicationEventPublisher eventPublisher,
5759
TaskDispatcher taskDispatcher, TaskExecutionService taskExecutionService, TaskFileStorage taskFileStorage) {

server/libs/modules/task-dispatchers/on-error/src/main/java/com/bytechef/task/dispatcher/on/error/completition/OnErrorTaskCompletionHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import com.bytechef.atlas.file.storage.TaskFileStorage;
3232
import com.bytechef.commons.util.MapUtils;
3333
import com.bytechef.evaluator.Evaluator;
34+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
3435
import java.time.Instant;
3536
import java.util.Collections;
3637
import java.util.HashMap;
@@ -50,6 +51,7 @@ public class OnErrorTaskCompletionHandler implements TaskCompletionHandler {
5051
private final TaskExecutionService taskExecutionService;
5152
private final TaskFileStorage taskFileStorage;
5253

54+
@SuppressFBWarnings("EI")
5355
public OnErrorTaskCompletionHandler(
5456
ContextService contextService, Evaluator evaluator, TaskCompletionHandler taskCompletionHandler,
5557
TaskDispatcher<? super Task> taskDispatcher, TaskExecutionService taskExecutionService,

0 commit comments

Comments
 (0)