From 5a2f3f2cda43a229cd98dde4f2f41e4ade9bfb89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonard=20Br=C3=BCnings?= Date: Thu, 21 Mar 2024 18:23:55 +0100 Subject: [PATCH] Implement Review Feedback --- .../java/org/spockframework/runtime/model/ErrorInfo.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spock-core/src/main/java/org/spockframework/runtime/model/ErrorInfo.java b/spock-core/src/main/java/org/spockframework/runtime/model/ErrorInfo.java index f5d24572f3..3da5aff7b6 100644 --- a/spock-core/src/main/java/org/spockframework/runtime/model/ErrorInfo.java +++ b/spock-core/src/main/java/org/spockframework/runtime/model/ErrorInfo.java @@ -22,12 +22,10 @@ public class ErrorInfo { private final IErrorContext errorContext; public ErrorInfo(MethodInfo method, Throwable error) { - this.method = method; - this.error = error; - this.errorContext = null; + this(method, error, null); } - public ErrorInfo(MethodInfo method, Throwable error, IErrorContext errorContext) { + public ErrorInfo(MethodInfo method, Throwable error, @Nullable IErrorContext errorContext) { this.method = method; this.error = error; this.errorContext = errorContext;