Skip to content

Commit

Permalink
🧁release 5.7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
looly committed Jul 18, 2021
1 parent 21b06f8 commit d8f393f
Show file tree
Hide file tree
Showing 24 changed files with 23 additions and 41 deletions.
2 changes: 1 addition & 1 deletion hutool-all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-all</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-aop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-aop</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-bloomFilter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-bloomFilter</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-bom</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-cache/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-cache</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-captcha/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-captcha</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-core</artifactId>
Expand Down
19 changes: 0 additions & 19 deletions hutool-core/src/main/java/cn/hutool/core/io/CharsetDetector.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,25 +82,6 @@ public static Charset detect(InputStream in, Charset... charsets) {
return null;
}

/**
* 判断编码,判断后会关闭流
*
* @param in 流
* @param charset 编码
* @return 编码
*/
private static Charset detectCharset(InputStream in, Charset charset) throws IOException {
CharsetDecoder decoder = charset.newDecoder();

final byte[] buffer = new byte[512];
while (in.read(buffer) > -1) {
if (identify(buffer, decoder)) {
return charset;
}
}
return null;
}

/**
* 通过try的方式测试指定bytes是否可以被解码,从而判断是否为指定编码
*
Expand Down
2 changes: 1 addition & 1 deletion hutool-cron/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-cron</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-crypto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-crypto</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-db/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-db</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-dfa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-dfa</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-extra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-extra</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-http/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-http</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-json/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-json</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-jwt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-jwt</artifactId>
Expand Down
1 change: 1 addition & 0 deletions hutool-jwt/src/main/java/cn/hutool/jwt/JWT.java
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ public boolean verify() {
* <li>{@link JWTPayload#ISSUED_AT}: 签发时间不能晚于当前时间</li>
* </ul>
*
* @param leeway 容忍空间,单位:秒。当不能晚于当前时间时,向后容忍;不能早于向前容忍。
* @return 是否有效
* @see JWTValidator
* @since 5.7.4
Expand Down
2 changes: 1 addition & 1 deletion hutool-log/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-log</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-poi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-poi</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-script/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-script</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-setting/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-setting</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-socket/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-socket</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion hutool-system/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
</parent>

<artifactId>hutool-system</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.7.5-SNAPSHOT</version>
<version>5.7.5</version>
<name>hutool</name>
<description>Hutool是一个小而全的Java工具类库,通过静态方法封装,降低相关API的学习成本,提高工作效率,使Java拥有函数式语言般的优雅,让Java语言也可以“甜甜的”。</description>
<url>https://github.com/looly/hutool</url>
Expand Down

0 comments on commit d8f393f

Please sign in to comment.