src/main/java/org/edgegallery/appstore/domain/shared/QueryCtrlDto.java
public void stringTrim() {
        this.sortItem = StringUtils.trimWhitespace(this.sortItem);
        if (StringUtils.isEmpty(this.sortItem)) {
            this.sortItem = DEFAULT_SORT_ITEM;
        }

        this.sortType = StringUtils.trimWhitespace(this.sortType);
        if (StringUtils.isEmpty(this.sortType)) {
            this.sortType = DEFAULT_SORT_TYPE;
        }

    }
/**
     * check basic data by trim.
     */
check basic data by trim.
check basic data by trim .
public void stringTrim() {
        this.sortItem = StringUtils.trimWhitespace(this.sortItem);
        if (StringUtils.isEmpty(this.sortItem)) {
            this.sortItem = DEFAULT_SORT_ITEM;
        }
        this.sortType = StringUtils.trimWhitespace(this.sortType);
        if (StringUtils.isEmpty(this.sortType)) {
            this.sortType = DEFAULT_SORT_TYPE;
        }
    }
public void stringTrim ( ) { this . sortItem = StringUtils . trimWhitespace ( this . sortItem ) ; if ( StringUtils . isEmpty ( this . sortItem ) ) { this . sortItem = DEFAULT_SORT_ITEM ; } this . sortType = StringUtils . trimWhitespace ( this . sortType ) ; if ( StringUtils . isEmpty ( this . sortType ) ) { this . sortType = DEFAULT_SORT_TYPE ; } }
check basic data by trim.
check basic data by trim .