build: 更新依赖
plusone-commons 更新至 1.1.0-SNAPSHOT; junit 更新至 5.10.3; 补充 junit-jupiter-engine。
This commit is contained in:
parent
5d21f13757
commit
ccddd0b610
22
pom.xml
22
pom.xml
@ -14,24 +14,39 @@
|
|||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
<dependencyManagement>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>xyz.zhouxy.plusone</groupId>
|
||||||
|
<artifactId>plusone-dependencies</artifactId>
|
||||||
|
<version>1.1.0-SNAPSHOT</version>
|
||||||
|
<type>pom</type>
|
||||||
|
<scope>import</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</dependencyManagement>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>xyz.zhouxy.plusone</groupId>
|
<groupId>xyz.zhouxy.plusone</groupId>
|
||||||
<artifactId>plusone-commons</artifactId>
|
<artifactId>plusone-commons</artifactId>
|
||||||
<version>1.0.0-RC2</version>
|
<version>1.1.0-SNAPSHOT</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.junit.jupiter</groupId>
|
<groupId>org.junit.jupiter</groupId>
|
||||||
<artifactId>junit-jupiter-api</artifactId>
|
<artifactId>junit-jupiter-api</artifactId>
|
||||||
<version>5.9.2</version>
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.junit.jupiter</groupId>
|
||||||
|
<artifactId>junit-jupiter-engine</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>ch.qos.logback</groupId>
|
<groupId>ch.qos.logback</groupId>
|
||||||
<artifactId>logback-classic</artifactId>
|
<artifactId>logback-classic</artifactId>
|
||||||
<version>1.2.11</version>
|
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
@ -39,7 +54,6 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.h2database</groupId>
|
<groupId>com.h2database</groupId>
|
||||||
<artifactId>h2</artifactId>
|
<artifactId>h2</artifactId>
|
||||||
<version>2.2.224</version>
|
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2022-2024 the original author or authors.
|
* Copyright 2022-2025 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -46,7 +46,7 @@ public class ParamBuilder {
|
|||||||
public static final Object[] EMPTY_OBJECT_ARRAY = {};
|
public static final Object[] EMPTY_OBJECT_ARRAY = {};
|
||||||
|
|
||||||
public static Object[] buildParams(final Object... params) {
|
public static Object[] buildParams(final Object... params) {
|
||||||
if (ArrayTools.isNullOrEmpty(params)) {
|
if (ArrayTools.isEmpty(params)) {
|
||||||
return EMPTY_OBJECT_ARRAY;
|
return EMPTY_OBJECT_ARRAY;
|
||||||
}
|
}
|
||||||
return Arrays.stream(params)
|
return Arrays.stream(params)
|
||||||
@ -55,13 +55,13 @@ public class ParamBuilder {
|
|||||||
return OptionalTools.orElseNull((Optional<?>) param);
|
return OptionalTools.orElseNull((Optional<?>) param);
|
||||||
}
|
}
|
||||||
if (param instanceof OptionalInt) {
|
if (param instanceof OptionalInt) {
|
||||||
return OptionalTools.toInteger(((OptionalInt) param));
|
return OptionalTools.toInteger((OptionalInt) param);
|
||||||
}
|
}
|
||||||
if (param instanceof OptionalLong) {
|
if (param instanceof OptionalLong) {
|
||||||
return OptionalTools.toLong(((OptionalLong) param));
|
return OptionalTools.toLong((OptionalLong) param);
|
||||||
}
|
}
|
||||||
if (param instanceof OptionalDouble) {
|
if (param instanceof OptionalDouble) {
|
||||||
return OptionalTools.toDouble(((OptionalDouble) param));
|
return OptionalTools.toDouble((OptionalDouble) param);
|
||||||
}
|
}
|
||||||
return param;
|
return param;
|
||||||
})
|
})
|
||||||
@ -78,13 +78,13 @@ public class ParamBuilder {
|
|||||||
return OptionalTools.orElseNull((Optional<?>) param);
|
return OptionalTools.orElseNull((Optional<?>) param);
|
||||||
}
|
}
|
||||||
if (param instanceof OptionalInt) {
|
if (param instanceof OptionalInt) {
|
||||||
return OptionalTools.toInteger(((OptionalInt) param));
|
return OptionalTools.toInteger((OptionalInt) param);
|
||||||
}
|
}
|
||||||
if (param instanceof OptionalLong) {
|
if (param instanceof OptionalLong) {
|
||||||
return OptionalTools.toLong(((OptionalLong) param));
|
return OptionalTools.toLong((OptionalLong) param);
|
||||||
}
|
}
|
||||||
if (param instanceof OptionalDouble) {
|
if (param instanceof OptionalDouble) {
|
||||||
return OptionalTools.toDouble(((OptionalDouble) param));
|
return OptionalTools.toDouble((OptionalDouble) param);
|
||||||
}
|
}
|
||||||
return param;
|
return param;
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user