Skip to content

Commit 042ec4c

Browse files
committed
Fix nullability on TaskListenerDecorator.merge.
1 parent 9989125 commit 042ec4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/jenkinsci/plugins/workflow/log/TaskListenerDecorator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
import java.util.stream.Stream;
4949
import javax.annotation.CheckForNull;
5050
import javax.annotation.Nonnull;
51+
import javax.annotation.Nullable;
5152
import jenkins.util.BuildListenerAdapter;
5253
import jenkins.util.JenkinsJVM;
5354
import org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner;
@@ -87,7 +88,7 @@ public abstract class TaskListenerDecorator implements /* TODO Remotable */ Seri
8788
* @param subsequent an overriding decorator, if any
8889
* @return null, or {@code original} or {@code subsequent}, or a merged result applying one then the other
8990
*/
90-
public static @CheckForNull TaskListenerDecorator merge(@CheckForNull TaskListenerDecorator original, @CheckForNull TaskListenerDecorator subsequent) {
91+
public static @Nullable TaskListenerDecorator merge(@CheckForNull TaskListenerDecorator original, @CheckForNull TaskListenerDecorator subsequent) {
9192
if (original == null) {
9293
if (subsequent == null) {
9394
return null;

0 commit comments

Comments
 (0)