修复 bug。
parent
d228f7d2b4
commit
6f8f8c2323
|
@ -51,10 +51,11 @@ public class PagingAndSortingQueryParams {
|
|||
}
|
||||
|
||||
public PagingAndSortingQueryParams(String... sortableColNames) {
|
||||
Set<String> sortableColNameSet = new HashSet<>(sortableColNames.length);
|
||||
for (String colName : sortableColNames) {
|
||||
Assert.isNotBlank(colName, "Column name must has text.");
|
||||
sortableColNameSet.add(colName);
|
||||
}
|
||||
Set<String> sortableColNameSet = new HashSet<>(sortableColNames.length);
|
||||
this.sortableColNames = Collections.unmodifiableSet(sortableColNameSet);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue