Skip to content

Commit e785abf

Browse files
Resolved comments: update mutation definition
1 parent 4b7fee6 commit e785abf

File tree

1 file changed

+5
-5
lines changed
  • google-cloud-spanner/src/main/java/com/google/cloud/spanner

1 file changed

+5
-5
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/Mutation.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ private Mutation(
119119
@Nullable ImmutableList<String> columns,
120120
@Nullable ImmutableList<Value> values,
121121
@Nullable KeySet keySet) {
122-
this(table, operation, columns, values, keySet, null, null, null, null, null);
122+
this(table, operation, columns, values, keySet, null, null, null, null, false);
123123
}
124124

125125
private Mutation(
126-
String table,
126+
@Nullable String table,
127127
Op operation,
128128
@Nullable ImmutableList<String> columns,
129129
@Nullable ImmutableList<Value> values,
@@ -132,7 +132,7 @@ private Mutation(
132132
@Nullable Key key,
133133
@Nullable Value payload,
134134
@Nullable Instant deliveryTime,
135-
@Nullable Boolean ignoreNotFound) {
135+
boolean ignoreNotFound) {
136136
this.table = table;
137137
this.operation = operation;
138138
this.columns = columns;
@@ -142,7 +142,7 @@ private Mutation(
142142
this.key = key;
143143
this.payload = payload;
144144
this.deliveryTime = deliveryTime;
145-
this.ignoreNotFound = ignoreNotFound != null && ignoreNotFound;
145+
this.ignoreNotFound = ignoreNotFound;
146146
}
147147

148148
/**
@@ -311,7 +311,7 @@ public SendBuilder setDeliveryTime(Instant deliveryTime) {
311311
public Mutation build() {
312312
checkState(key != null, "Key must be set for Send mutation");
313313
checkState(payload != null, "Payload must be set for Send mutation");
314-
return new Mutation(null, Op.SEND, null, null, null, queue, key, payload, deliveryTime, null);
314+
return new Mutation(null, Op.SEND, null, null, null, queue, key, payload, deliveryTime, false);
315315
}
316316
}
317317

0 commit comments

Comments
 (0)