From 174b4b48872de31d8252d59963349515f74146b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonard=20Br=C3=BCnings?= Date: Fri, 16 Feb 2024 12:05:55 +0100 Subject: [PATCH] fixup! Address review comments --- spock-core/src/main/java/spock/lang/Snapshotter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spock-core/src/main/java/spock/lang/Snapshotter.java b/spock-core/src/main/java/spock/lang/Snapshotter.java index 7c7ac5346d..3e6ff8e79b 100644 --- a/spock-core/src/main/java/spock/lang/Snapshotter.java +++ b/spock-core/src/main/java/spock/lang/Snapshotter.java @@ -116,7 +116,10 @@ public class Snapshot { private final String value; private Snapshot(String value) { - this.value = normalizer.apply(Checks.notNull(value, () -> "value is null")); + this.value = Checks.notNull( + normalizer.apply(Checks.notNull(value, () -> "value is null")), + () -> "normalizer returned null value" + ); } /**