mirror of
https://github.com/continew-org/continew-starter.git
synced 2025-09-13 10:59:19 +08:00
style: 调整代码风格 null != xx => xx != null(更符合大众风格)
This commit is contained in:
@@ -50,13 +50,13 @@ public class SimpleDeserializersWrapper extends SimpleDeserializers {
|
||||
DeserializationConfig config,
|
||||
BeanDescription beanDesc) throws JsonMappingException {
|
||||
JsonDeserializer<?> deser = super.findEnumDeserializer(type, config, beanDesc);
|
||||
if (null != deser) {
|
||||
if (deser != null) {
|
||||
return deser;
|
||||
}
|
||||
// 重写增强:开始查找指定枚举类型的接口的反序列化器(例如:GenderEnum 枚举类型,则是找它的接口 BaseEnum 的反序列化器)
|
||||
for (Class<?> typeInterface : type.getInterfaces()) {
|
||||
deser = this._classMappings.get(new ClassKey(typeInterface));
|
||||
if (null != deser) {
|
||||
if (deser != null) {
|
||||
return deser;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user