This commit is contained in:
Looly 2024-07-15 11:28:54 +08:00
parent dc46dfd9e5
commit 738f67549a
3 changed files with 1 additions and 41 deletions

View File

@ -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);
}
/**

View File

@ -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>

View File

@ -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());
}
}