ObjectUtil的空判断方法
#1983
-
public static boolean isNull(Object obj) { |
Beta Was this translation helpful? Give feedback.
Answered by
looly
Nov 29, 2021
Replies: 2 comments 1 reply
-
也许作者认为equals方法是可以重写的,有的时候在重写的equals方法里判断是null,也是有可能的。虽然当前对象不为null |
Beta Was this translation helpful? Give feedback.
1 reply
-
你可以看下JSON模块提供了 hutool在6.x中会去除这些让人疑惑的东西…… |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
amy-habor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你可以看下JSON模块提供了
JSONNull
对象……hutool在6.x中会去除这些让人疑惑的东西……