From fba176864cef4467d1632cf4ae0f8d78f1edf505 Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Wed, 6 Mar 2024 14:24:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../commons/annotation/{Overridable.java => Virtual.java} | 4 ++-- .../plusone/commons/util/PagingAndSortingQueryParams.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/main/java/xyz/zhouxy/plusone/commons/annotation/{Overridable.java => Virtual.java} (94%) 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; }