Skip to content

Commit 779d065

Browse files
cpovirksduskis
authored andcommitted
---
yaml --- r: 33503 b: refs/heads/autosynth-os-login c: 6b78c52 h: refs/heads/master i: 33501: d6abbf0 33499: a894339 33495: 70e201a 33487: 0a9179a 33471: 0f9a328
1 parent 22b94d0 commit 779d065

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ refs/heads/autosynth-firestore: e79eeb26930dfae4439424ad2fda5874eeca54c8
134134
refs/heads/autosynth-iot: 044be280805a59e06d09658688c9ee474a9815ad
135135
refs/heads/autosynth-kms: d31449d6621a50fb16a4bef4f30f0f3051d27d7c
136136
refs/heads/autosynth-language: 6130869312f99a1e7d3aa0485759172a23333cc5
137-
refs/heads/autosynth-os-login: 1b29001e39672994368e51ce6fae44a5528613fa
137+
refs/heads/autosynth-os-login: 6b78c52cfa63334e3846e348752f8345d78f0aa8
138138
refs/heads/autosynth-redis: 6bedce4d7c7c6ca6a22e83ad1780e08fdc565a9e
139139
refs/heads/autosynth-scheduler: 57f9fdb1e7de30c85f4ec7198931a07f50603e55
140140
refs/heads/autosynth-spanner: de02ca32edea133b68b51052e325359a3704b5d2

branches/autosynth-os-login/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/MutationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public void serializationBasic() {
233233
Mutation.toProto(mutations, proto);
234234

235235
assertThat(proto.size()).isAtLeast(1);
236-
assertThat(proto.get(0)).isSameAs(existingProto);
236+
assertThat(proto.get(0)).isSameInstanceAs(existingProto);
237237
proto.remove(0);
238238

239239
assertThat(proto.size()).isEqualTo(5);

branches/autosynth-os-login/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/SpannerImplTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void getDbclientAgainGivesSame() {
9494
// Get db client again
9595
DatabaseClient databaseClient1 = impl.getDatabaseClient(db);
9696

97-
assertThat(databaseClient1).isSameAs(databaseClient);
97+
assertThat(databaseClient1).isSameInstanceAs(databaseClient);
9898
}
9999

100100
@Test

branches/autosynth-os-login/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/TypeTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private abstract static class ScalarTypeTester {
4747
void test() {
4848
Type t = newType();
4949
assertThat(t.getCode()).isEqualTo(expectedCode);
50-
assertThat(newType()).isSameAs(t); // Interned.
50+
assertThat(newType()).isSameInstanceAs(t); // Interned.
5151
// String form is deliberately the same as the corresponding type enum in the public API.
5252
assertThat(t.toString()).isEqualTo(expectedProtoCode.toString());
5353

@@ -59,7 +59,7 @@ void test() {
5959
// Round trip.
6060
Type fromProto = Type.fromProto(proto);
6161
assertThat(fromProto).isEqualTo(t);
62-
assertThat(fromProto).isSameAs(t);
62+
assertThat(fromProto).isSameInstanceAs(t);
6363

6464
reserializeAndAssert(t);
6565
}
@@ -155,7 +155,7 @@ void test() {
155155
assertThat(t.getCode()).isEqualTo(Type.Code.ARRAY);
156156
assertThat(t.getArrayElementType()).isEqualTo(elementType);
157157
if (expectInterned) {
158-
assertThat(Type.array(newElementType())).isSameAs(t);
158+
assertThat(Type.array(newElementType())).isSameInstanceAs(t);
159159
}
160160
assertThat(t.toString()).isEqualTo("ARRAY<" + elementType.toString() + ">");
161161

@@ -168,7 +168,7 @@ void test() {
168168
assertThat(fromProto).isEqualTo(t);
169169

170170
if (expectInterned) {
171-
assertThat(fromProto).isSameAs(t);
171+
assertThat(fromProto).isSameInstanceAs(t);
172172
}
173173
reserializeAndAssert(t);
174174
}

branches/autosynth-os-login/google-cloud-clients/google-cloud-spanner/src/test/java/com/google/cloud/spanner/ValueTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,15 @@ public void bytes() {
214214
Value v = Value.bytes(bytes);
215215
assertThat(v.getType()).isEqualTo(Type.bytes());
216216
assertThat(v.isNull()).isFalse();
217-
assertThat(v.getBytes()).isSameAs(bytes);
217+
assertThat(v.getBytes()).isSameInstanceAs(bytes);
218218
assertThat(v.toString()).isEqualTo(bytes.toString());
219219
}
220220

221221
@Test
222222
public void bytesUnprintable() {
223223
ByteArray bytes = ByteArray.copyFrom(new byte[] {'a', 0, 15, -1, 'e'});
224224
Value v = Value.bytes(bytes);
225-
assertThat(v.getBytes()).isSameAs(bytes);
225+
assertThat(v.getBytes()).isSameInstanceAs(bytes);
226226
assertThat(v.toString()).isEqualTo(bytes.toString());
227227
}
228228

@@ -246,7 +246,7 @@ public void timestamp() {
246246
assertThat(v.getType()).isEqualTo(Type.timestamp());
247247
assertThat(v.isNull()).isFalse();
248248
assertThat(v.isCommitTimestamp()).isFalse();
249-
assertThat(v.getTimestamp()).isSameAs(t);
249+
assertThat(v.getTimestamp()).isSameInstanceAs(t);
250250
assertThat(v.toString()).isEqualTo(timestamp);
251251
}
252252

@@ -286,7 +286,7 @@ public void date() {
286286
Value v = Value.date(t);
287287
assertThat(v.getType()).isEqualTo(Type.date());
288288
assertThat(v.isNull()).isFalse();
289-
assertThat(v.getDate()).isSameAs(t);
289+
assertThat(v.getDate()).isSameInstanceAs(t);
290290
assertThat(v.toString()).isEqualTo(date);
291291
}
292292

0 commit comments

Comments
 (0)