1
mirror of https://github.com/CarmJos/EasyConfiguration.git synced 2026-06-04 18:48:20 +08:00

放弃Unsafe包操作

This commit is contained in:
2022-04-19 23:20:40 +08:00
parent 80747ac922
commit 132ca81635
8 changed files with 38 additions and 32 deletions
@@ -36,7 +36,7 @@ public class SomeModel extends AbstractModel implements ConfigurationSerializabl
@TestOnly
public static SomeModel deserialize(Map<String, ?> args) {
return new SomeModel((String) args.get("name"), (int) args.get("num"));
return new SomeModel((String) args.get("name"), (Integer) args.get("num"));
}