Skip to content

Commit d8305f1

Browse files
chore: Update the Java code generator (gapic-generator-java) to 2.25.0 (#1425)
* 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 bb6f462 commit d8305f1

17 files changed

+17
-17
lines changed

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountLocationName.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public boolean equals(Object o) {
140140
if (o == this) {
141141
return true;
142142
}
143-
if (o != null || getClass() == o.getClass()) {
143+
if (o != null && getClass() == o.getClass()) {
144144
BillingAccountLocationName that = ((BillingAccountLocationName) o);
145145
return Objects.equals(this.billingAccount, that.billingAccount)
146146
&& Objects.equals(this.location, that.location);

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BillingAccountName.java

Lines changed: 1 addition & 1 deletion
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
BillingAccountName that = ((BillingAccountName) o);
132132
return Objects.equals(this.billingAccount, that.billingAccount);
133133
}

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsName.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public boolean equals(Object o) {
325325
if (o == this) {
326326
return true;
327327
}
328-
if (o != null || getClass() == o.getClass()) {
328+
if (o != null && getClass() == o.getClass()) {
329329
CmekSettingsName that = ((CmekSettingsName) o);
330330
return Objects.equals(this.project, that.project)
331331
&& Objects.equals(this.organization, that.organization)

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderLocationName.java

Lines changed: 1 addition & 1 deletion
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
FolderLocationName that = ((FolderLocationName) o);
142142
return Objects.equals(this.folder, that.folder)
143143
&& Objects.equals(this.location, that.location);

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/FolderName.java

Lines changed: 1 addition & 1 deletion
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
FolderName that = ((FolderName) o);
132132
return Objects.equals(this.folder, that.folder);
133133
}

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ public boolean equals(Object o) {
388388
if (o == this) {
389389
return true;
390390
}
391-
if (o != null || getClass() == o.getClass()) {
391+
if (o != null && getClass() == o.getClass()) {
392392
LinkName that = ((LinkName) o);
393393
return Objects.equals(this.project, that.project)
394394
&& Objects.equals(this.location, that.location)

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationName.java

Lines changed: 1 addition & 1 deletion
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
LocationName that = ((LocationName) o);
142142
return Objects.equals(this.project, that.project)
143143
&& Objects.equals(this.location, that.location);

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketName.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public boolean equals(Object o) {
344344
if (o == this) {
345345
return true;
346346
}
347-
if (o != null || getClass() == o.getClass()) {
347+
if (o != null && getClass() == o.getClass()) {
348348
LogBucketName that = ((LogBucketName) o);
349349
return Objects.equals(this.project, that.project)
350350
&& Objects.equals(this.location, that.location)

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionName.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public boolean equals(Object o) {
296296
if (o == this) {
297297
return true;
298298
}
299-
if (o != null || getClass() == o.getClass()) {
299+
if (o != null && getClass() == o.getClass()) {
300300
LogExclusionName that = ((LogExclusionName) o);
301301
return Objects.equals(this.project, that.project)
302302
&& Objects.equals(this.exclusion, that.exclusion)

proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricName.java

Lines changed: 1 addition & 1 deletion
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
LogMetricName that = ((LogMetricName) o);
142142
return Objects.equals(this.project, that.project) && Objects.equals(this.metric, that.metric);
143143
}

0 commit comments

Comments
 (0)