Удалил метод empty в SortContainer

Он не нужен, проще отправлять null. Изменил метод проверки в CriteriaJooqFilter
This commit is contained in:
Struchkov Mark 2022-02-18 17:10:55 +03:00
parent 0926725983
commit 8de98da22f
2 changed files with 1 additions and 6 deletions

View File

@ -111,8 +111,7 @@ public class CriteriaJooqFilter {
}
public CriteriaJooqFilter sort(SortContainer container) {
Assert.isNotNull(container);
if (container.getFieldName() != null) {
if (container != null && container.getFieldName() != null) {
this.sorts.add(container);
}
return this;

View File

@ -17,10 +17,6 @@ public class SortContainer {
this.type = type;
}
public static SortContainer empty() {
return new SortContainer(null);
}
public static SortContainer of(String fieldName) {
Assert.isNotNull(fieldName);
return new SortContainer(fieldName);