diff --git a/module/spring-boot-mustache/src/main/java/org/springframework/boot/mustache/autoconfigure/MustacheProperties.java b/module/spring-boot-mustache/src/main/java/org/springframework/boot/mustache/autoconfigure/MustacheProperties.java index 5de8b6dbff1..3711615096c 100644 --- a/module/spring-boot-mustache/src/main/java/org/springframework/boot/mustache/autoconfigure/MustacheProperties.java +++ b/module/spring-boot-mustache/src/main/java/org/springframework/boot/mustache/autoconfigure/MustacheProperties.java @@ -195,13 +195,13 @@ public class MustacheProperties { */ private boolean exposeSpringMacroHelpers = true; - private final Supplier charset; + private final Supplier<@Nullable Charset> charset; public Servlet() { this.charset = () -> null; } - private Servlet(Supplier charset) { + private Servlet(Supplier<@Nullable Charset> charset) { this.charset = charset; }