From e5f908062c92a88da9b694c2889b3b00ff20a371 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=82=E6=A2=A6=E6=8A=80=E6=9C=AF?= <596392912@qq.com> Date: Thu, 5 Dec 2024 21:48:54 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E5=BF=BD=E7=95=A5=20javadoc=20?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/net/dreamlu/mica/core/graalvm/NativeUtil.java | 2 ++ .../src/main/java/net/dreamlu/mica/core/tuple/Pair.java | 9 +++++++++ pom.xml | 1 + 3 files changed, 12 insertions(+) diff --git a/mica-core/src/main/java/net/dreamlu/mica/core/graalvm/NativeUtil.java b/mica-core/src/main/java/net/dreamlu/mica/core/graalvm/NativeUtil.java index 487d0bfe0..b87357f11 100644 --- a/mica-core/src/main/java/net/dreamlu/mica/core/graalvm/NativeUtil.java +++ b/mica-core/src/main/java/net/dreamlu/mica/core/graalvm/NativeUtil.java @@ -29,6 +29,8 @@ public class NativeUtil { /** * Returns {@code true} if invoked in the context of image building or during image runtime, else {@code false}. + * + * @return boolean */ public static boolean inNativeImage() { return IS_IMAGE_CODE || GENERATED_CLASS_PRESENT; diff --git a/mica-core/src/main/java/net/dreamlu/mica/core/tuple/Pair.java b/mica-core/src/main/java/net/dreamlu/mica/core/tuple/Pair.java index 74e3683c6..6e7af66a2 100644 --- a/mica-core/src/main/java/net/dreamlu/mica/core/tuple/Pair.java +++ b/mica-core/src/main/java/net/dreamlu/mica/core/tuple/Pair.java @@ -25,6 +25,8 @@ /** * tuple Pair * + * @param 泛型 + * @param 泛型 * @author L.cm **/ @Getter @@ -38,6 +40,7 @@ public class Pair { /** * Returns an empty pair. + * @return Pair */ @SuppressWarnings("unchecked") public static Pair empty() { @@ -48,6 +51,9 @@ public static Pair empty() { * Constructs a pair with its left value being {@code left}, or returns an empty pair if * {@code left} is null. * + * @param left left + * @param 泛型 + * @param 泛型 * @return the constructed pair or an empty pair if {@code left} is null. */ public static Pair createLeft(L left) { @@ -62,6 +68,9 @@ public static Pair createLeft(L left) { * Constructs a pair with its right value being {@code right}, or returns an empty pair if * {@code right} is null. * + * @param right right + * @param 泛型 + * @param 泛型 * @return the constructed pair or an empty pair if {@code right} is null. */ public static Pair createRight(R right) { diff --git a/pom.xml b/pom.xml index 7bb690791..adcbaddef 100644 --- a/pom.xml +++ b/pom.xml @@ -40,6 +40,7 @@ 1.6.0 3.10.1 3.4.2 + false 5.3.39 2.7.18