mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix code
This commit is contained in:
parent
4b646f745f
commit
41d1415cf5
@ -313,12 +313,7 @@ public class JavaInfo implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 判定当前Java的版本是否大于等于指定的版本号。
|
* 判定当前Java的版本是否大于等于指定的版本号,例如:
|
||||||
*
|
|
||||||
* <p>
|
|
||||||
* 例如:
|
|
||||||
* <p>
|
|
||||||
*
|
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>测试JDK 1.2:{@code isJavaVersionAtLeast(1.2f)}</li>
|
* <li>测试JDK 1.2:{@code isJavaVersionAtLeast(1.2f)}</li>
|
||||||
* <li>测试JDK 1.2.1:{@code isJavaVersionAtLeast(1.31f)}</li>
|
* <li>测试JDK 1.2.1:{@code isJavaVersionAtLeast(1.31f)}</li>
|
||||||
@ -332,12 +327,7 @@ public class JavaInfo implements Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 判定当前Java的版本是否大于等于指定的版本号。
|
* 判定当前Java的版本是否大于等于指定的版本号,例如:
|
||||||
*
|
|
||||||
* <p>
|
|
||||||
* 例如:
|
|
||||||
* <p>
|
|
||||||
*
|
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>测试JDK 1.2:{@code isJavaVersionAtLeast(120)}</li>
|
* <li>测试JDK 1.2:{@code isJavaVersionAtLeast(120)}</li>
|
||||||
* <li>测试JDK 1.2.1:{@code isJavaVersionAtLeast(131)}</li>
|
* <li>测试JDK 1.2.1:{@code isJavaVersionAtLeast(131)}</li>
|
||||||
|
@ -105,7 +105,7 @@ public class HttpUtilTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
//@Disabled
|
@Disabled
|
||||||
public void patchTest() {
|
public void patchTest() {
|
||||||
// 验证patch请求是否可用
|
// 验证patch请求是否可用
|
||||||
final String body = HttpUtil.send(Request.of("https://hutool.cn").method(Method.PATCH)).bodyStr();
|
final String body = HttpUtil.send(Request.of("https://hutool.cn").method(Method.PATCH)).bodyStr();
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.ofdrw</groupId>
|
<groupId>org.ofdrw</groupId>
|
||||||
<artifactId>ofdrw-full</artifactId>
|
<artifactId>ofdrw-full</artifactId>
|
||||||
<version>1.20.2</version>
|
<version>2.0.4</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
5
pom.xml
5
pom.xml
@ -106,6 +106,11 @@
|
|||||||
<compilerArgument>-Xlint:unchecked</compilerArgument>
|
<compilerArgument>-Xlint:unchecked</compilerArgument>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-surefire-plugin</artifactId>
|
||||||
|
<version>3.0.0</version>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user