-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
86 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#### 3.2.67 | ||
* 增加 java record 的参数与字段去重处理 | ||
|
||
#### 3.2.66 | ||
* 增加 Charset 反序化支持 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package features; | ||
|
||
import features.test5.A; | ||
import org.junit.Test; | ||
import org.noear.snack.ONode; | ||
|
||
/** | ||
* @author noear 2023/5/10 created | ||
*/ | ||
public class _test5 { | ||
@Test | ||
public void test() { | ||
String poc = "{\"@type\":\"features.test5.A\"," + | ||
"\"b\":{\"@type\":\"features.test5.B\",\"bList\":\"str1\"}}"; | ||
System.out.println(poc); | ||
A o = ONode.deserialize(poc); | ||
System.out.println(o.getB().getbList().size()); | ||
assert o.getB().getbList().size() == 1; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package features.test5; | ||
|
||
/** | ||
* @author noear 2023/5/10 created | ||
*/ | ||
public class A { | ||
private B b; | ||
|
||
public A(B b) { | ||
this.b = b; | ||
} | ||
|
||
public B getB() { | ||
return b; | ||
} | ||
|
||
public void setB(B b) { | ||
this.b = b; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package features.test5; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* @author noear 2023/5/10 created | ||
*/ | ||
public class B { | ||
private List<String> bList; | ||
|
||
public B(List<String> bList) { | ||
this.bList = bList; | ||
} | ||
|
||
public List<String> getbList() { | ||
return bList; | ||
} | ||
|
||
public void setbList(List<String> bList) { | ||
this.bList = bList; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters