修复 bug。

feature/net-util
ZhouXY108 2023-06-28 01:11:06 +08:00
parent d228f7d2b4
commit 6f8f8c2323
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}