DATACMNS-1486 - Add missing Nullable annotation in HateoasSortHandlerMethodArgumentResolver.
Original pull request: #341.
This commit is contained in:
committed by
Mark Paluch
parent
598c9cf443
commit
6699e9692f
@@ -23,6 +23,7 @@ import org.springframework.hateoas.TemplateVariable;
|
||||
import org.springframework.hateoas.TemplateVariable.VariableType;
|
||||
import org.springframework.hateoas.TemplateVariables;
|
||||
import org.springframework.hateoas.server.mvc.UriComponentsContributor;
|
||||
import org.springframework.lang.Nullable;
|
||||
import org.springframework.util.MultiValueMap;
|
||||
import org.springframework.web.util.UriComponents;
|
||||
import org.springframework.web.util.UriComponentsBuilder;
|
||||
@@ -67,7 +68,7 @@ public class HateoasSortHandlerMethodArgumentResolver extends SortHandlerMethodA
|
||||
* @see org.springframework.hateoas.server.mvc.UriComponentsContributor#enhance(org.springframework.web.util.UriComponentsBuilder, org.springframework.core.MethodParameter, java.lang.Object)
|
||||
*/
|
||||
@Override
|
||||
public void enhance(UriComponentsBuilder builder, MethodParameter parameter, Object value) {
|
||||
public void enhance(UriComponentsBuilder builder, MethodParameter parameter, @Nullable Object value) {
|
||||
|
||||
if (!(value instanceof Sort)) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user