forked from plusone/plusone-commons
修复 bug。
This commit is contained in:
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…
x
Reference in New Issue
Block a user