20
20
import java .nio .charset .StandardCharsets ;
21
21
import java .util .List ;
22
22
23
+ import org .jspecify .annotations .Nullable ;
24
+
23
25
import org .springframework .boot .context .properties .ConfigurationProperties ;
24
26
import org .springframework .http .MediaType ;
25
27
import org .springframework .util .MimeType ;
@@ -83,17 +85,17 @@ public class ThymeleafProperties {
83
85
* first in the chain. Order start at 1 and should only be set if you have defined
84
86
* additional "TemplateResolver" beans.
85
87
*/
86
- private Integer templateResolverOrder ;
88
+ private @ Nullable Integer templateResolverOrder ;
87
89
88
90
/**
89
91
* List of view names (patterns allowed) that can be resolved.
90
92
*/
91
- private String [] viewNames ;
93
+ private String @ Nullable [] viewNames ;
92
94
93
95
/**
94
96
* List of view names (patterns allowed) that should be excluded from resolution.
95
97
*/
96
- private String [] excludedViewNames ;
98
+ private String @ Nullable [] excludedViewNames ;
97
99
98
100
/**
99
101
* Enable the SpringEL compiler in SpringEL expressions.
@@ -179,27 +181,27 @@ public void setCache(boolean cache) {
179
181
this .cache = cache ;
180
182
}
181
183
182
- public Integer getTemplateResolverOrder () {
184
+ public @ Nullable Integer getTemplateResolverOrder () {
183
185
return this .templateResolverOrder ;
184
186
}
185
187
186
- public void setTemplateResolverOrder (Integer templateResolverOrder ) {
188
+ public void setTemplateResolverOrder (@ Nullable Integer templateResolverOrder ) {
187
189
this .templateResolverOrder = templateResolverOrder ;
188
190
}
189
191
190
- public String [] getExcludedViewNames () {
192
+ public String @ Nullable [] getExcludedViewNames () {
191
193
return this .excludedViewNames ;
192
194
}
193
195
194
- public void setExcludedViewNames (String [] excludedViewNames ) {
196
+ public void setExcludedViewNames (String @ Nullable [] excludedViewNames ) {
195
197
this .excludedViewNames = excludedViewNames ;
196
198
}
197
199
198
- public String [] getViewNames () {
200
+ public String @ Nullable [] getViewNames () {
199
201
return this .viewNames ;
200
202
}
201
203
202
- public void setViewNames (String [] viewNames ) {
204
+ public void setViewNames (String @ Nullable [] viewNames ) {
203
205
this .viewNames = viewNames ;
204
206
}
205
207
@@ -269,25 +271,25 @@ public static class Reactive {
269
271
/**
270
272
* Media types supported by the view technology.
271
273
*/
272
- private List <MediaType > mediaTypes ;
274
+ private @ Nullable List <MediaType > mediaTypes ;
273
275
274
276
/**
275
277
* Comma-separated list of view names (patterns allowed) that should be executed
276
278
* in FULL mode even if a max chunk size is set.
277
279
*/
278
- private String [] fullModeViewNames ;
280
+ private String @ Nullable [] fullModeViewNames ;
279
281
280
282
/**
281
283
* Comma-separated list of view names (patterns allowed) that should be the only
282
284
* ones executed in CHUNKED mode when a max chunk size is set.
283
285
*/
284
- private String [] chunkedModeViewNames ;
286
+ private String @ Nullable [] chunkedModeViewNames ;
285
287
286
- public List <MediaType > getMediaTypes () {
288
+ public @ Nullable List <MediaType > getMediaTypes () {
287
289
return this .mediaTypes ;
288
290
}
289
291
290
- public void setMediaTypes (List <MediaType > mediaTypes ) {
292
+ public void setMediaTypes (@ Nullable List <MediaType > mediaTypes ) {
291
293
this .mediaTypes = mediaTypes ;
292
294
}
293
295
@@ -299,19 +301,19 @@ public void setMaxChunkSize(DataSize maxChunkSize) {
299
301
this .maxChunkSize = maxChunkSize ;
300
302
}
301
303
302
- public String [] getFullModeViewNames () {
304
+ public String @ Nullable [] getFullModeViewNames () {
303
305
return this .fullModeViewNames ;
304
306
}
305
307
306
- public void setFullModeViewNames (String [] fullModeViewNames ) {
308
+ public void setFullModeViewNames (String @ Nullable [] fullModeViewNames ) {
307
309
this .fullModeViewNames = fullModeViewNames ;
308
310
}
309
311
310
- public String [] getChunkedModeViewNames () {
312
+ public String @ Nullable [] getChunkedModeViewNames () {
311
313
return this .chunkedModeViewNames ;
312
314
}
313
315
314
- public void setChunkedModeViewNames (String [] chunkedModeViewNames ) {
316
+ public void setChunkedModeViewNames (String @ Nullable [] chunkedModeViewNames ) {
315
317
this .chunkedModeViewNames = chunkedModeViewNames ;
316
318
}
317
319
0 commit comments