重命名注解

This commit is contained in:
zhouxy108 2024-03-06 14:24:31 +08:00
parent 725283c829
commit fba176864c
2 changed files with 4 additions and 4 deletions

View File

@ -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 {
}

View File

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