File tree Expand file tree Collapse file tree
driver-mapping/src/main/java/com/datastax/driver/mapping Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -257,10 +257,9 @@ private ListenableFuture<BoundStatement> saveQueryAsync(
257257 T entity , final EnumMap <Option .Type , Option > options ) {
258258 final Map <AliasedMappedProperty , Object > columnToValue =
259259 new TreeMap <AliasedMappedProperty , Object >();
260- final boolean useUnsetForNullValue =
261- !shouldSaveNullFields (options ) && manager .protocolVersionAsInt >= 4 ;
262- final boolean includeColumnsWithNullValue =
263- shouldSaveNullFields (options ) || useUnsetForNullValue ;
260+ final boolean shouldSaveNullFields = shouldSaveNullFields (options );
261+ final boolean useUnsetForNullValue = !shouldSaveNullFields && manager .protocolVersionAsInt >= 4 ;
262+ final boolean includeColumnsWithNullValue = shouldSaveNullFields || useUnsetForNullValue ;
264263
265264 for (AliasedMappedProperty col : mapper .allColumns ) {
266265 Object value = col .mappedProperty .getValue (entity );
You can’t perform that action at this time.
0 commit comments