DATACMNS-867 - Moved to new factory methods for Sort.

Codebase now uses Sort.by(…) where possible instead of the deprecated new Sort(…).
This commit is contained in:
Oliver Gierke
2017-03-21 18:46:06 +01:00
parent fee153f724
commit 417e728e77
12 changed files with 53 additions and 26 deletions

View File

@@ -178,7 +178,7 @@ public class SortHandlerMethodArgumentResolver implements SortArgumentResolver {
return Sort.unsorted();
}
return sortOrNull.and(new Sort(sortDefault.direction(), fields));
return sortOrNull.and(Sort.by(sortDefault.direction(), fields));
}
/**