Commit 164115c
committed
Add Charset overload for Mustache template encoding
Add setCharset(Charset) overload to MustacheResourceTemplateLoader
while keeping setCharset(String) for backward compatibility. The
String-based method is deprecated in favor of the Charset variant.
Also deprecate MustacheProperties.getCharsetName() as it's primarily
used with the deprecated setCharset(String) method.
This change maintains backward compatibility while providing a more
type-safe API that aligns with modern Java standards.
See gh-48347
Signed-off-by: djlee <ddongjunn@gmail.com>1 parent e8030e5 commit 164115c
File tree
2 files changed
+17
-0
lines changed- module/spring-boot-mustache/src/main/java/org/springframework/boot/mustache/autoconfigure
2 files changed
+17
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
| |||
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
65 | 76 | | |
66 | 77 | | |
67 | 78 | | |
| |||
0 commit comments