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
dc46dfd9e5
commit
738f67549a
@ -36,7 +36,7 @@ public class BeanValueProvider implements ValueProvider<String> {
|
||||
* @param bean Bean
|
||||
*/
|
||||
public BeanValueProvider(final Object bean) {
|
||||
this(bean, BeanUtil.getBeanDesc(bean.getClass()));
|
||||
this(bean, null);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -54,18 +54,6 @@
|
||||
<version>${bouncycastle.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba.fastjson2</groupId>
|
||||
<artifactId>fastjson2</artifactId>
|
||||
<version>2.0.51</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.alibaba</groupId>
|
||||
<artifactId>fastjson</artifactId>
|
||||
<version>2.0.51</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.jsonwebtoken</groupId>
|
||||
<artifactId>jjwt-impl</artifactId>
|
||||
|
@ -36,32 +36,4 @@ public class IssueI7VM64Test {
|
||||
//Console.log("Hutool JSON: " + jsonObject);
|
||||
Assertions.assertEquals("{\"c\":{\"a\":\"1\"}}", jsonObject.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
void fastJSONTest() {
|
||||
final HashMap<String, Object> map = new HashMap<>();
|
||||
map.put("a", "1");
|
||||
|
||||
final com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();
|
||||
jsonObject.put("c", map);
|
||||
|
||||
map.put("b", 2);
|
||||
|
||||
//Console.log("FastJSON: " + jsonObject);
|
||||
Assertions.assertEquals("{\"c\":{\"a\":\"1\",\"b\":2}}", jsonObject.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
void fastJSON2Test() {
|
||||
final HashMap<String, Object> map = new HashMap<>();
|
||||
map.put("a", "1");
|
||||
|
||||
final com.alibaba.fastjson2.JSONObject jsonObject = new com.alibaba.fastjson2.JSONObject();
|
||||
jsonObject.put("c", map);
|
||||
|
||||
map.put("b", 2);
|
||||
|
||||
//Console.log("FastJSON2 " + jsonObject);
|
||||
Assertions.assertEquals("{\"c\":{\"a\":\"1\",\"b\":2}}", jsonObject.toString());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user