Skip to content

Commit

Permalink
✨ 忽略 javadoc 报错
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunMengLu committed Dec 5, 2024
1 parent 51cb510 commit e5f9080
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
9 changes: 9 additions & 0 deletions mica-core/src/main/java/net/dreamlu/mica/core/tuple/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
/**
* tuple Pair
*
* @param <L> 泛型
* @param <R> 泛型
* @author L.cm
**/
@Getter
Expand All @@ -38,6 +40,7 @@ public class Pair<L, R> {

/**
* Returns an empty pair.
* @return Pair
*/
@SuppressWarnings("unchecked")
public static <L, R> Pair<L, R> empty() {
Expand All @@ -48,6 +51,9 @@ public static <L, R> Pair<L, R> 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 <L> 泛型
* @param <R> 泛型
* @return the constructed pair or an empty pair if {@code left} is null.
*/
public static <L, R> Pair<L, R> createLeft(L left) {
Expand All @@ -62,6 +68,9 @@ public static <L, R> Pair<L, R> 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 <L> 泛型
* @param <R> 泛型
* @return the constructed pair or an empty pair if {@code right} is null.
*/
public static <L, R> Pair<L, R> createRight(R right) {
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<maven-flatten.version>1.6.0</maven-flatten.version>
<maven-compiler.version>3.10.1</maven-compiler.version>
<maven-jar-plugin.version>3.4.2</maven-jar-plugin.version>
<maven.javadoc.failOnError>false</maven.javadoc.failOnError>
<!-- spring boot 全家桶 -->
<spring.version>5.3.39</spring.version>
<spring.boot.version>2.7.18</spring.boot.version>
Expand Down

0 comments on commit e5f9080

Please sign in to comment.