Commit c12d93c
Polish ServletWebRequest and DefaultServerWebExchange
- The return values of ServletWebRequest.validateIfUnmodifiedSince and
DefaultServerWebExchange.validateIfUnmodifiedSince are not used. So I
think that it is better to remove the return statements.
- Add missing @nullable declarations to eTag method parameters.
- Simplify if statements
Closes gh-294601 parent ca6acfe commit c12d93c
File tree
2 files changed
+15
-22
lines changed- spring-web/src/main/java/org/springframework/web
- context/request
- server/adapter
2 files changed
+15
-22
lines changedLines changed: 9 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
| 235 | + | |
239 | 236 | | |
240 | 237 | | |
241 | 238 | | |
| |||
308 | 305 | | |
309 | 306 | | |
310 | 307 | | |
311 | | - | |
| 308 | + | |
312 | 309 | | |
313 | 310 | | |
314 | 311 | | |
| |||
329 | 326 | | |
330 | 327 | | |
331 | 328 | | |
332 | | - | |
| 329 | + | |
333 | 330 | | |
334 | | - | |
| 331 | + | |
335 | 332 | | |
336 | 333 | | |
337 | | - | |
338 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
339 | 337 | | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | 338 | | |
344 | 339 | | |
345 | | - | |
| 340 | + | |
346 | 341 | | |
347 | 342 | | |
348 | 343 | | |
| |||
353 | 348 | | |
354 | 349 | | |
355 | 350 | | |
356 | | - | |
| 351 | + | |
357 | 352 | | |
358 | 353 | | |
359 | 354 | | |
| |||
Lines changed: 6 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
| 349 | + | |
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
404 | | - | |
| 404 | + | |
405 | 405 | | |
406 | | - | |
| 406 | + | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
410 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
411 | 412 | | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | 413 | | |
416 | 414 | | |
417 | 415 | | |
| |||
0 commit comments