Skip to content

Commit 21d3dad

Browse files
committed
Prepare release
2 parents ced8bf8 + b8048c1 commit 21d3dad

File tree

55 files changed

+1012
-94
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1012
-94
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11

22
# 🚀Changelog
33

4+
-------------------------------------------------------------------------------------------------------------
5+
# 5.8.36(2025-02-18)
6+
7+
### 🐣新特性
8+
* 【crypto 】 增加BCUtil.decodeECPrivateKey方法(issue#3829@Github)
9+
* 【core 】 增加HtmlUtil.cleanEmptyTag方法(pr#3838@Github)
10+
* 【db 】 GlobalDbSetting优化默认配置读取规则,优先读取文件而非jar中的文件(issue#900@Github)
11+
* 【dfa 】 删除StopChar类中存在重复字符(pr#3841@Github)
12+
* 【http 】 支持鸿蒙设备 UA 解析(pr#1301@Gitee)
13+
14+
### 🐞Bug修复
15+
* 【aop 】 修复ProxyUtil可能的空指针问题(issue#IBF20Z@Gitee)
16+
* 【core 】 修复XmlUtil转义调用方法错误问题,修复XmlEscape未转义单引号问题(pr#3837@Github)
17+
* 【core 】 修复FileUtil.isAbsolutePath没有判断smb路径问题(pr#1299@Gitee)
18+
* 【core 】 修复AbstractFilter没有检查参数长度问题(issue#3854@Github)
19+
420
-------------------------------------------------------------------------------------------------------------
521
# 5.8.35(2024-12-25)
622

README-EN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,18 +153,18 @@ We provide the T-Shirt and Sweater with Hutool Logo, please visit the shop:
153153
<dependency>
154154
<groupId>cn.hutool</groupId>
155155
<artifactId>hutool-all</artifactId>
156-
<version>5.8.35</version>
156+
<version>5.8.36</version>
157157
</dependency>
158158
```
159159

160160
### 🍐Gradle
161161
```
162-
implementation 'cn.hutool:hutool-all:5.8.35'
162+
implementation 'cn.hutool:hutool-all:5.8.36'
163163
```
164164

165165
## 📥Download
166166

167-
- [Maven Repo](https://repo1.maven.org/maven2/cn/hutool/hutool-all/5.8.35/)
167+
- [Maven Repo](https://repo1.maven.org/maven2/cn/hutool/hutool-all/5.8.36/)
168168

169169
> 🔔️note:
170170
> Hutool 5.x supports JDK8+ and is not tested on Android platforms, and cannot guarantee that all tool classes or tool methods are available.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,20 +146,20 @@ Hutool = Hu + tool,是原公司项目底层代码剥离后的开源库,“Hu
146146
<dependency>
147147
<groupId>cn.hutool</groupId>
148148
<artifactId>hutool-all</artifactId>
149-
<version>5.8.35</version>
149+
<version>5.8.36</version>
150150
</dependency>
151151
```
152152

153153
### 🍐Gradle
154154
```
155-
implementation 'cn.hutool:hutool-all:5.8.35'
155+
implementation 'cn.hutool:hutool-all:5.8.36'
156156
```
157157

158158
### 📥下载jar
159159

160160
点击以下链接,下载`hutool-all-X.X.X.jar`即可:
161161

162-
- [Maven中央库](https://repo1.maven.org/maven2/cn/hutool/hutool-all/5.8.35/)
162+
- [Maven中央库](https://repo1.maven.org/maven2/cn/hutool/hutool-all/5.8.36/)
163163

164164
> 🔔️注意
165165
> Hutool 5.x支持JDK8+,对Android平台没有测试,不能保证所有工具类或工具方法可用。

bin/javadoc.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@
44

55
# 多模块聚合文档,生成在target/site/apidocs
66
exec mvn javadoc:aggregate
7+
8+
bin_home="$(dirname ${BASH_SOURCE[0]})"
9+
10+
# 拷贝自定义的index.html到聚合文档目录
11+
cp -vf $bin_home/../docs/apidocs/index.html $bin_home/../target/reports/apidocs/

bin/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.8.35
1+
5.8.36

docs/js/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
var version = '5.8.35'
1+
var version = '5.8.36'

hutool-all/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<parent>
1010
<groupId>cn.hutool</groupId>
1111
<artifactId>hutool-parent</artifactId>
12-
<version>5.8.35</version>
12+
<version>5.8.36</version>
1313
</parent>
1414

1515
<artifactId>hutool-all</artifactId>

hutool-aop/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<parent>
1010
<groupId>cn.hutool</groupId>
1111
<artifactId>hutool-parent</artifactId>
12-
<version>5.8.35</version>
12+
<version>5.8.36</version>
1313
</parent>
1414

1515
<artifactId>hutool-aop</artifactId>

hutool-aop/src/main/java/cn/hutool/aop/proxy/JdkProxyFactory.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
public class JdkProxyFactory extends ProxyFactory {
1313
private static final long serialVersionUID = 1L;
1414

15+
/**
16+
* 获取单例
17+
*/
18+
public static JdkProxyFactory INSTANCE = new JdkProxyFactory();
19+
1520
@Override
1621
public <T> T proxy(T target, Aspect aspect) {
1722
return ProxyUtil.newProxyInstance(//

hutool-aop/src/main/java/cn/hutool/aop/proxy/ProxyFactory.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,13 @@ public static <T> T createProxy(T target, Class<? extends Aspect> aspectClass) {
5959
* @return 代理对象
6060
*/
6161
public static <T> T createProxy(T target, Aspect aspect) {
62-
return create().proxy(target, aspect);
62+
ProxyFactory factory = create();
63+
if(null == factory){
64+
// issue#IBF20Z
65+
// 可能的空指针问题
66+
factory = JdkProxyFactory.INSTANCE;
67+
}
68+
return factory.proxy(target, aspect);
6369
}
6470

6571
/**

0 commit comments

Comments
 (0)