mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
Opt get change to getOrNull
This commit is contained in:
@@ -145,7 +145,7 @@ public class JSONConverter implements Converter, Serializable {
|
||||
if (obj instanceof Optional) {
|
||||
obj = ((Optional<?>) obj).orElse(null);
|
||||
} else if (obj instanceof Opt) {
|
||||
obj = ((Opt<?>) obj).get();
|
||||
obj = ((Opt<?>) obj).getOrNull();
|
||||
}
|
||||
|
||||
final JSON json;
|
||||
|
Reference in New Issue
Block a user