Simplify MediaTypeRequestMatcher construction#6648
Simplify MediaTypeRequestMatcher construction#6648clevertension wants to merge 1 commit intospring-projects:masterfrom
Conversation
jzheaux
left a comment
There was a problem hiding this comment.
Thanks, @clevertension! I've left some inline feedback.
...rc/test/java/org/springframework/security/web/util/matcher/MediaTypeRequestMatcherTests.java
Outdated
Show resolved
Hide resolved
web/src/main/java/org/springframework/security/web/util/matcher/MediaTypeRequestMatcher.java
Outdated
Show resolved
Hide resolved
|
@jzheaux it's done |
jzheaux
left a comment
There was a problem hiding this comment.
Thanks again, @clevertension! I've left just a bit more feedback inline.
Also, once you have that ready, will you please squash your commits so that there is only one in the PR? Thanks!
...rc/test/java/org/springframework/security/web/util/matcher/MediaTypeRequestMatcherTests.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Will you please add the appropriate line break here?
There was a problem hiding this comment.
A number of these tests don't actually throw an HttpMediaTypeNotAcceptableException. Will you please remove the throws from the signature where it is unnecessary? This way, the expectations of the test are clearer.
|
Thanks again, @clevertension! This is now merged into |
|
@jzheaux thanks very much for reviewing my code, i hope i can contribute more code 😃😃 |
|
I'd love that, @clevertension! Make sure to keep an eye out especially for tickets tagged with "help wanted" as those are usually ideal for community contributions. |
this PR will simplify MediaTypeRequestMatcher construction, just like
MediaTypeServerWebExchangeMatchersee #6612