diff --git a/src/main/java/xyz/zhouxy/plusone/commons/annotation/Overridable.java b/src/main/java/xyz/zhouxy/plusone/commons/annotation/Virtual.java similarity index 94% rename from src/main/java/xyz/zhouxy/plusone/commons/annotation/Overridable.java rename to src/main/java/xyz/zhouxy/plusone/commons/annotation/Virtual.java index a0a3c1b..ff418bd 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/annotation/Overridable.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/annotation/Virtual.java @@ -22,7 +22,7 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * 标识该方法是可覆写的。 + * 标识该方法是可虚方法。 *

该注解用于提醒、强调父类虽然有默认实现,但子类可以根据自己的需要覆写。

* * @author ZhouXY @@ -30,5 +30,5 @@ import java.lang.annotation.Target; */ @Target(ElementType.METHOD) @Retention(RetentionPolicy.SOURCE) -public @interface Overridable { +public @interface Virtual { } diff --git a/src/main/java/xyz/zhouxy/plusone/commons/util/PagingAndSortingQueryParams.java b/src/main/java/xyz/zhouxy/plusone/commons/util/PagingAndSortingQueryParams.java index b62b265..149af29 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/util/PagingAndSortingQueryParams.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/util/PagingAndSortingQueryParams.java @@ -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; }