forked from plusone/plusone-commons
重命名注解
parent
725283c829
commit
fba176864c
|
@ -22,7 +22,7 @@ import java.lang.annotation.RetentionPolicy;
|
|||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* 标识该方法是可覆写的。
|
||||
* 标识该方法是可虚方法。
|
||||
* <p>该注解用于提醒、强调父类虽然有默认实现,但子类可以根据自己的需要覆写。</p>
|
||||
*
|
||||
* @author <a href="https://gitee.com/zhouxy108">ZhouXY</a>
|
||||
|
@ -30,5 +30,5 @@ import java.lang.annotation.Target;
|
|||
*/
|
||||
@Target(ElementType.METHOD)
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
public @interface Overridable {
|
||||
public @interface Virtual {
|
||||
}
|
|
@ -28,7 +28,7 @@ import org.apache.commons.lang3.StringUtils;
|
|||
import com.google.common.base.Preconditions;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
|
||||
import xyz.zhouxy.plusone.commons.annotation.Overridable;
|
||||
import xyz.zhouxy.plusone.commons.annotation.Virtual;
|
||||
|
||||
/**
|
||||
* 分页排序查询参数
|
||||
|
@ -105,7 +105,7 @@ public class PagingAndSortingQueryParams {
|
|||
|
||||
// Setters end
|
||||
|
||||
@Overridable
|
||||
@Virtual
|
||||
protected int getDefaultSize() {
|
||||
return DEFAULT_PAGE_SIZE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue