From 6a54a8628bee5a89fd8bf1e09256434979707dfa Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Wed, 22 Jan 2025 21:53:07 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=AE=8C=E5=96=84=20JavaDoc=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20copyright=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xyz/zhouxy/plusone/commons/annotation/ReaderMethod.java | 3 ++- .../java/xyz/zhouxy/plusone/commons/annotation/Virtual.java | 6 +++--- .../xyz/zhouxy/plusone/commons/annotation/WriterMethod.java | 3 ++- .../plusone/commons/exception/MultiTypesException.java | 2 +- .../java/xyz/zhouxy/plusone/commons/util/IdGenerator.java | 4 ++-- src/main/java/xyz/zhouxy/plusone/commons/util/IdWorker.java | 2 +- .../java/xyz/zhouxy/plusone/commons/util/RandomTools.java | 4 ++-- 7 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/main/java/xyz/zhouxy/plusone/commons/annotation/ReaderMethod.java b/src/main/java/xyz/zhouxy/plusone/commons/annotation/ReaderMethod.java index 2b84d99..8504f0c 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/annotation/ReaderMethod.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/annotation/ReaderMethod.java @@ -1,5 +1,5 @@ /* - * Copyright 2023-2024 the original author or authors. + * Copyright 2023-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,6 +29,7 @@ import java.lang.annotation.Target; * * @author ZhouXY * @since 1.0 + * @see WriterMethod */ @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) diff --git a/src/main/java/xyz/zhouxy/plusone/commons/annotation/Virtual.java b/src/main/java/xyz/zhouxy/plusone/commons/annotation/Virtual.java index 65fd6d2..3302ded 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/annotation/Virtual.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/annotation/Virtual.java @@ -1,5 +1,5 @@ /* - * Copyright 2023-2024 the original author or authors. + * Copyright 2023-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,9 +22,9 @@ import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * 标识该方法是可虚方法。 + * 标识该方法是虚方法。 *

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

- * + * * @author ZhouXY * @since 0.1.0 */ diff --git a/src/main/java/xyz/zhouxy/plusone/commons/annotation/WriterMethod.java b/src/main/java/xyz/zhouxy/plusone/commons/annotation/WriterMethod.java index 518217d..f2aa0fb 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/annotation/WriterMethod.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/annotation/WriterMethod.java @@ -1,5 +1,5 @@ /* - * Copyright 2023-2024 the original author or authors. + * Copyright 2023-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,6 +29,7 @@ import java.lang.annotation.Target; * * @author ZhouXY * @since 1.0 + * @see ReaderMethod */ @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) diff --git a/src/main/java/xyz/zhouxy/plusone/commons/exception/MultiTypesException.java b/src/main/java/xyz/zhouxy/plusone/commons/exception/MultiTypesException.java index e97cec8..60156c7 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/exception/MultiTypesException.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/exception/MultiTypesException.java @@ -119,7 +119,7 @@ import xyz.zhouxy.plusone.commons.base.IWithCode; * *

* - * @author ZhouXY + * @author ZhouXY * @since 1.0.0 */ public interface MultiTypesException> { diff --git a/src/main/java/xyz/zhouxy/plusone/commons/util/IdGenerator.java b/src/main/java/xyz/zhouxy/plusone/commons/util/IdGenerator.java index 2bf8276..9dc028b 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/util/IdGenerator.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/util/IdGenerator.java @@ -1,5 +1,5 @@ /* - * Copyright 2023-2024 the original author or authors. + * Copyright 2023-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ import java.util.concurrent.ConcurrentHashMap; * * @see UUID * @see IdWorker - * @author ZhouXY + * @author ZhouXY */ public class IdGenerator { diff --git a/src/main/java/xyz/zhouxy/plusone/commons/util/IdWorker.java b/src/main/java/xyz/zhouxy/plusone/commons/util/IdWorker.java index 20b59bc..4d42af6 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/util/IdWorker.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/util/IdWorker.java @@ -42,7 +42,7 @@ import xyz.zhouxy.plusone.commons.exception.system.NoAvailableMacFoundException; *
  • 关于若干读者,阅读“改良版雪花算法”后提出的几个共性问题的回复。
  • * *

    - * @author ZhouXY + * @author ZhouXY */ public class IdWorker { diff --git a/src/main/java/xyz/zhouxy/plusone/commons/util/RandomTools.java b/src/main/java/xyz/zhouxy/plusone/commons/util/RandomTools.java index 07f54bf..d4b3cef 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/util/RandomTools.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/util/RandomTools.java @@ -1,5 +1,5 @@ /* - * Copyright 2023-2024 the original author or authors. + * Copyright 2023-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,7 +29,7 @@ import javax.annotation.Nonnull; *

    * 建议调用方自行维护 Random 对象 *

    - * @author ZhouXY + * @author ZhouXY */ public final class RandomTools {