Skip to content

Commit e2d1db5

Browse files
chore: Update the Java code generator (gapic-generator-java) to 2.25.0 (#1720)
* chore: Update the Java code generator (gapic-generator-java) to 2.25.0 PiperOrigin-RevId: 563824709 Source-Link: googleapis/googleapis@8fe4127 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c8c0112151b19d890bb49b747b0ab28b816d47b1 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzhjMDExMjE1MWIxOWQ4OTBiYjQ5Yjc0N2IwYWIyOGI4MTZkNDdiMSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 390bdaf commit e2d1db5

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/ProjectName.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public boolean equals(Object o) {
127127
if (o == this) {
128128
return true;
129129
}
130-
if (o != null || getClass() == o.getClass()) {
130+
if (o != null && getClass() == o.getClass()) {
131131
ProjectName that = ((ProjectName) o);
132132
return Objects.equals(this.project, that.project);
133133
}

proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SchemaName.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public boolean equals(Object o) {
137137
if (o == this) {
138138
return true;
139139
}
140-
if (o != null || getClass() == o.getClass()) {
140+
if (o != null && getClass() == o.getClass()) {
141141
SchemaName that = ((SchemaName) o);
142142
return Objects.equals(this.project, that.project) && Objects.equals(this.schema, that.schema);
143143
}

proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SnapshotName.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public boolean equals(Object o) {
137137
if (o == this) {
138138
return true;
139139
}
140-
if (o != null || getClass() == o.getClass()) {
140+
if (o != null && getClass() == o.getClass()) {
141141
SnapshotName that = ((SnapshotName) o);
142142
return Objects.equals(this.project, that.project)
143143
&& Objects.equals(this.snapshot, that.snapshot);

proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/SubscriptionName.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public boolean equals(Object o) {
137137
if (o == this) {
138138
return true;
139139
}
140-
if (o != null || getClass() == o.getClass()) {
140+
if (o != null && getClass() == o.getClass()) {
141141
SubscriptionName that = ((SubscriptionName) o);
142142
return Objects.equals(this.project, that.project)
143143
&& Objects.equals(this.subscription, that.subscription);

proto-google-cloud-pubsub-v1/src/main/java/com/google/pubsub/v1/TopicName.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public boolean equals(Object o) {
178178
if (o == this) {
179179
return true;
180180
}
181-
if (o != null || getClass() == o.getClass()) {
181+
if (o != null && getClass() == o.getClass()) {
182182
TopicName that = ((TopicName) o);
183183
return Objects.equals(this.project, that.project) && Objects.equals(this.topic, that.topic);
184184
}

0 commit comments

Comments
 (0)