This commit is contained in:
Looly 2019-12-20 16:03:23 +08:00
parent 3eedc8a761
commit 8932801137
27 changed files with 55 additions and 30 deletions

View File

@ -3,6 +3,14 @@
-------------------------------------------------------------------------------------------------------------
## 5.1.1
### 新特性
* 【core 】 ClassUtil.isSimpleValueType增加TemporalAccessor支持issue#I170HK@Gitee
### Bug修复
-------------------------------------------------------------------------------------------------------------
## 5.1.0
### 新特性

View File

@ -116,21 +116,21 @@ Hutool的存在就是为了减少代码搜索成本避免网络上参差不
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.1.0</version>
<version>5.1.1</version>
</dependency>
```
### Gradle
```
compile 'cn.hutool:hutool-all:5.1.0'
compile 'cn.hutool:hutool-all:5.1.1'
```
### 非Maven项目
点击以下任一链接,下载`hutool-all-X.X.X.jar`即可:
- [Maven中央库1](https://repo1.maven.org/maven2/cn/hutool/hutool-all/5.1.0/)
- [Maven中央库2](http://repo2.maven.org/maven2/cn/hutool/hutool-all/5.1.0/)
- [Maven中央库1](https://repo1.maven.org/maven2/cn/hutool/hutool-all/5.1.1/)
- [Maven中央库2](http://repo2.maven.org/maven2/cn/hutool/hutool-all/5.1.1/)
> 注意
> Hutool 5.x支持JDK8+对Android平台没有测试不能保证所有工具类获工具方法可用。

View File

@ -1 +1 @@
5.1.0
5.1.1

View File

@ -1 +1 @@
var version = '5.1.0'
var version = '5.1.1'

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-all</artifactId>

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-aop</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-bloomFilter</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-bom</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-cache</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-captcha</artifactId>

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-core</artifactId>

View File

@ -8,6 +8,8 @@ import java.lang.reflect.Modifier;
import java.lang.reflect.Type;
import java.net.URI;
import java.net.URL;
import java.time.LocalDateTime;
import java.time.temporal.TemporalAccessor;
import java.util.Date;
import java.util.Enumeration;
import java.util.HashSet;
@ -744,7 +746,17 @@ public class ClassUtil {
/**
* 是否为简单值类型<br>
* 包括原始类型,Stringother CharSequence, a Number, a Date, a URI, a URL, a Locale or a Class.
* 包括
* <pre>
* 原始类型
* Stringother CharSequence
* Number
* Date
* URI
* URL
* Locale
* Class
* </pre>
*
* @param clazz
* @return 是否为简单值类型
@ -758,7 +770,9 @@ public class ClassUtil {
|| clazz.equals(URI.class) //
|| clazz.equals(URL.class) //
|| clazz.equals(Locale.class) //
|| clazz.equals(Class.class);//
|| clazz.equals(Class.class)//
// jdk8 date object
|| TemporalAccessor.class.isAssignableFrom(clazz); //
}
/**

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-cron</artifactId>

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-crypto</artifactId>

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-db</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-dfa</artifactId>

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-extra</artifactId>

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-http</artifactId>

View File

@ -549,10 +549,13 @@ public class HttpUtil {
int pathEndPos = paramsStr.indexOf('?');
if (pathEndPos > -1) {
paramsStr = StrUtil.subSuf(paramsStr, pathEndPos + 1);
if (StrUtil.isBlank(paramsStr)) {
return Collections.emptyMap();
}
}
final Map<String, List<String>> params = new LinkedHashMap<>();
final int len = paramsStr.length();
final Map<String, List<String>> params = new LinkedHashMap<>();
String name = null;
int pos = 0; // 未处理字符开始位置
int i; // 未处理字符结束位置

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-json</artifactId>

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-log</artifactId>

View File

@ -8,7 +8,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-poi</artifactId>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-script</artifactId>

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-setting</artifactId>

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-socket</artifactId>

View File

@ -9,7 +9,7 @@
<parent>
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
</parent>
<artifactId>hutool-system</artifactId>

View File

@ -8,7 +8,7 @@
<groupId>cn.hutool</groupId>
<artifactId>hutool-parent</artifactId>
<version>5.1.0</version>
<version>5.1.1-SNAPSHOT</version>
<name>hutool</name>
<description>提供丰富的Java工具方法</description>
<url>https://github.com/looly/hutool</url>