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

See gh-46926
This commit is contained in:
Moritz Halbritter
2025-08-26 14:22:55 +02:00
parent eb14624047
commit 55443f7c44
@@ -195,13 +195,13 @@ public class MustacheProperties {
*/
private boolean exposeSpringMacroHelpers = true;
private final Supplier<Charset> charset;
private final Supplier<@Nullable Charset> charset;
public Servlet() {
this.charset = () -> null;
}
private Servlet(Supplier<Charset> charset) {
private Servlet(Supplier<@Nullable Charset> charset) {
this.charset = charset;
}