File tree Expand file tree Collapse file tree 10 files changed +10
-10
lines changed
proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2
proto-google-cloud-bigtable-v2/src/main/java/com/google/bigtable/v2 Expand file tree Collapse file tree 10 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ public boolean equals(Object o) {
154
154
if (o == this ) {
155
155
return true ;
156
156
}
157
- if (o != null || getClass () == o .getClass ()) {
157
+ if (o != null && getClass () == o .getClass ()) {
158
158
AppProfileName that = ((AppProfileName ) o );
159
159
return Objects .equals (this .project , that .project )
160
160
&& Objects .equals (this .instance , that .instance )
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ public boolean equals(Object o) {
174
174
if (o == this ) {
175
175
return true ;
176
176
}
177
- if (o != null || getClass () == o .getClass ()) {
177
+ if (o != null && getClass () == o .getClass ()) {
178
178
BackupName that = ((BackupName ) o );
179
179
return Objects .equals (this .project , that .project )
180
180
&& Objects .equals (this .instance , that .instance )
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ public boolean equals(Object o) {
154
154
if (o == this ) {
155
155
return true ;
156
156
}
157
- if (o != null || getClass () == o .getClass ()) {
157
+ if (o != null && getClass () == o .getClass ()) {
158
158
ClusterName that = ((ClusterName ) o );
159
159
return Objects .equals (this .project , that .project )
160
160
&& Objects .equals (this .instance , that .instance )
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ public boolean equals(Object o) {
137
137
if (o == this ) {
138
138
return true ;
139
139
}
140
- if (o != null || getClass () == o .getClass ()) {
140
+ if (o != null && getClass () == o .getClass ()) {
141
141
InstanceName that = ((InstanceName ) o );
142
142
return Objects .equals (this .project , that .project )
143
143
&& Objects .equals (this .instance , that .instance );
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ public boolean equals(Object o) {
137
137
if (o == this ) {
138
138
return true ;
139
139
}
140
- if (o != null || getClass () == o .getClass ()) {
140
+ if (o != null && getClass () == o .getClass ()) {
141
141
LocationName that = ((LocationName ) o );
142
142
return Objects .equals (this .project , that .project )
143
143
&& Objects .equals (this .location , that .location );
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ public boolean equals(Object o) {
127
127
if (o == this ) {
128
128
return true ;
129
129
}
130
- if (o != null || getClass () == o .getClass ()) {
130
+ if (o != null && getClass () == o .getClass ()) {
131
131
ProjectName that = ((ProjectName ) o );
132
132
return Objects .equals (this .project , that .project );
133
133
}
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ public boolean equals(Object o) {
174
174
if (o == this ) {
175
175
return true ;
176
176
}
177
- if (o != null || getClass () == o .getClass ()) {
177
+ if (o != null && getClass () == o .getClass ()) {
178
178
SnapshotName that = ((SnapshotName ) o );
179
179
return Objects .equals (this .project , that .project )
180
180
&& Objects .equals (this .instance , that .instance )
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ public boolean equals(Object o) {
154
154
if (o == this ) {
155
155
return true ;
156
156
}
157
- if (o != null || getClass () == o .getClass ()) {
157
+ if (o != null && getClass () == o .getClass ()) {
158
158
TableName that = ((TableName ) o );
159
159
return Objects .equals (this .project , that .project )
160
160
&& Objects .equals (this .instance , that .instance )
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ public boolean equals(Object o) {
137
137
if (o == this ) {
138
138
return true ;
139
139
}
140
- if (o != null || getClass () == o .getClass ()) {
140
+ if (o != null && getClass () == o .getClass ()) {
141
141
InstanceName that = ((InstanceName ) o );
142
142
return Objects .equals (this .project , that .project )
143
143
&& Objects .equals (this .instance , that .instance );
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ public boolean equals(Object o) {
154
154
if (o == this ) {
155
155
return true ;
156
156
}
157
- if (o != null || getClass () == o .getClass ()) {
157
+ if (o != null && getClass () == o .getClass ()) {
158
158
TableName that = ((TableName ) o );
159
159
return Objects .equals (this .project , that .project )
160
160
&& Objects .equals (this .instance , that .instance )
You can’t perform that action at this time.
0 commit comments