mirror of
https://github.com/CarmJos/EasyConfiguration.git
synced 2026-06-04 18:48:20 +08:00
放弃Unsafe包操作
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user