Revert "Properly render sort variable variable as composite."

This reverts commit fa9d7bdce7 as the change has too many side effects to be included in a bugfix version.

Related ticket: GH-2531.
This commit is contained in:
Oliver Drotbohm
2023-12-12 21:11:17 +01:00
parent 144051b56d
commit 9c99164ad6
3 changed files with 10 additions and 13 deletions

View File

@@ -35,7 +35,6 @@ import org.springframework.web.util.UriComponentsBuilder;
* @author Oliver Gierke
* @author Thomas Darimont
* @author Nick Williams
* @author Julien Béti
*/
public class HateoasSortHandlerMethodArgumentResolver extends SortHandlerMethodArgumentResolver
implements UriComponentsContributor {
@@ -59,7 +58,7 @@ public class HateoasSortHandlerMethodArgumentResolver extends SortHandlerMethodA
String description = String.format("pagination.%s.description", sortParameter);
TemplateVariable.VariableType type = append ? REQUEST_PARAM_CONTINUED : REQUEST_PARAM;
return new TemplateVariables(new TemplateVariable(sortParameter, type, description).composite());
return new TemplateVariables(new TemplateVariable(sortParameter, type, description));
}
@Override