Browse Source

Improve null-safety of module/spring-boot-mustache

See gh-46926
pull/46973/head
Moritz Halbritter 7 months ago
parent
commit
55443f7c44
  1. 4
      module/spring-boot-mustache/src/main/java/org/springframework/boot/mustache/autoconfigure/MustacheProperties.java

4
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 boolean exposeSpringMacroHelpers = true;
private final Supplier<Charset> charset; private final Supplier<@Nullable Charset> charset;
public Servlet() { public Servlet() {
this.charset = () -> null; this.charset = () -> null;
} }
private Servlet(Supplier<Charset> charset) { private Servlet(Supplier<@Nullable Charset> charset) {
this.charset = charset; this.charset = charset;
} }

Loading…
Cancel
Save