Avoid use of String's for ContentDisposition type#25647
Avoid use of String's for ContentDisposition type#25647kashike wants to merge 1 commit intospring-projects:masterfrom kashike:feature/content-disposition-constants
Conversation
|
Is there anything holding this pull request back? It is very simple and non-breaking. |
|
I think adding alternatives to the static WDYT and if you agree would you like to update your PR with those changes? |
|
@rstoyanchev I have added the helper methods, but I have also kept the new constants as well, as they are still useful - for example, checking the type: Let me know if this is okay with you now. |
rstoyanchev
left a comment
There was a problem hiding this comment.
Thanks I've schedule it for 5.3.
spring-web/src/main/java/org/springframework/http/ContentDisposition.java
Outdated
Show resolved
Hide resolved
spring-web/src/main/java/org/springframework/http/ContentDisposition.java
Outdated
Show resolved
Hide resolved
|
@rstoyanchev How does that look now? |
This adds constants for three common Content-Disposition types:
attachment,form-data, andinline.I have also updated the tests to use these new constants.