Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit c395c8b

Browse files
more tweaks
Change-Id: I4f9f1dd6191d2971d95303f9bc939c4d0999c6e7
1 parent c4cd2bd commit c395c8b

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

  • google-cloud-bigtable/src
    • main/java/com/google/cloud/bigtable/admin/v2/models
    • test/java/com/google/cloud/bigtable/common

google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/models/Type.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* @see com.google.bigtable.admin.v2.Type
2828
*/
2929
@BetaApi
30+
@SuppressWarnings("SameNameButDifferent")
3031
public interface Type {
3132
/**
3233
* These types are marker types that allow types to be used as the input to aggregate function.

google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/common/TypeTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public void simpleTypes_TypeToString() {
6464
}
6565

6666
@Test
67+
@SuppressWarnings("TruthIncompatibleType")
6768
public void simpleTypes_equals() {
6869
assertThat(Type.String.create()).isEqualTo(Type.String.create());
6970
assertThat(Type.Bytes.create()).isEqualTo(Type.Bytes.create());
@@ -87,6 +88,7 @@ public void simpleTypes_equals() {
8788
}
8889

8990
@Test
91+
@SuppressWarnings("TruthIncompatibleType")
9092
public void array_equals() {
9193
assertThat(Type.Array.create(Type.String.create()))
9294
.isEqualTo(Type.Array.create(Type.String.create()));
@@ -123,6 +125,7 @@ public void map_equals() {
123125
}
124126

125127
@Test
128+
@SuppressWarnings("TruthIncompatibleType")
126129
public void proto_equals() {
127130
assertThat(Type.SchemalessProto.create("MyMessage", "my_bundle"))
128131
.isEqualTo(Type.SchemalessProto.create("MyMessage", "my_bundle"));
@@ -147,6 +150,7 @@ public void proto_equals() {
147150
}
148151

149152
@Test
153+
@SuppressWarnings("TruthIncompatibleType")
150154
public void enum_equals() {
151155
assertThat(Type.SchemalessEnum.create("MyEnum", "my_bundle"))
152156
.isEqualTo(Type.SchemalessEnum.create("MyEnum", "my_bundle"));

0 commit comments

Comments
 (0)