File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
src/main/java/com/jsoniter/extra Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -176,15 +176,18 @@ public boolean equals(Object o) {
176
176
177
177
Builder builder = (Builder ) o ;
178
178
179
- if (excludeFieldsWithoutExposeAnnotation != builder .excludeFieldsWithoutExposeAnnotation ) return false ;
180
- if (disableHtmlEscaping != builder .disableHtmlEscaping ) return false ;
181
- if (!dateFormat .get ().equals (builder .dateFormat .get ())) return false ;
182
- if (fieldNamingStrategy != null ? !fieldNamingStrategy .equals (builder .fieldNamingStrategy ) : builder .fieldNamingStrategy != null )
183
- return false ;
184
- if (version != null ? !version .equals (builder .version ) : builder .version != null ) return false ;
185
- if (serializationExclusionStrategies != null ? !serializationExclusionStrategies .equals (builder .serializationExclusionStrategies ) : builder .serializationExclusionStrategies != null )
186
- return false ;
187
- return deserializationExclusionStrategies != null ? deserializationExclusionStrategies .equals (builder .deserializationExclusionStrategies ) : builder .deserializationExclusionStrategies == null ;
179
+ return excludeFieldsWithoutExposeAnnotation == builder .excludeFieldsWithoutExposeAnnotation &&
180
+ disableHtmlEscaping == builder .disableHtmlEscaping &&
181
+ dateFormat .get ().equals (builder .dateFormat .get ()) &&
182
+ (fieldNamingStrategy != null ? fieldNamingStrategy .equals (builder .fieldNamingStrategy ) :
183
+ builder .fieldNamingStrategy == null ) &&
184
+ (version != null ? version .equals (builder .version ) : builder .version == null ) &&
185
+ (serializationExclusionStrategies != null ?
186
+ serializationExclusionStrategies .equals (builder .serializationExclusionStrategies ) :
187
+ builder .serializationExclusionStrategies == null ) &&
188
+ (deserializationExclusionStrategies != null ?
189
+ deserializationExclusionStrategies .equals (builder .deserializationExclusionStrategies ) :
190
+ builder .deserializationExclusionStrategies == null );
188
191
}
189
192
190
193
@ Override
You can’t perform that action at this time.
0 commit comments