fix comment

This commit is contained in:
Looly
2022-04-02 00:34:49 +08:00
parent 4d2e7bc755
commit 9a953b2a03
8 changed files with 46 additions and 48 deletions

View File

@@ -213,7 +213,7 @@ public class JSONUtilTest {
@Test
public void sqlExceptionTest(){
//https://github.com/looly/hutool/issues/1399
//https://github.com/dromara/hutool/issues/1399
// SQLException实现了Iterable接口默认是遍历之会栈溢出修正后只返回string
final JSONObject set = JSONUtil.createObj().set("test", new SQLException("test"));
Assert.assertEquals("{\"test\":\"java.sql.SQLException: test\"}", set.toString());