Skip to content

Commit 76dd313

Browse files
committed
update java feign samples
1 parent e48a49e commit 76dd313

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Body1.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) {
7878
}
7979
Body1 body1 = (Body1) o;
8080
return Objects.equals(this.additionalMetadata, body1.additionalMetadata) &&
81-
Arrays.equals(this.file, body1.file);
81+
Objects.equals(this.file, body1.file);
8282
}
8383

8484
@Override
8585
public int hashCode() {
86-
return Objects.hash(additionalMetadata, Arrays.hashCode(file));
86+
return Objects.hash(additionalMetadata, Objects.hashCode(file));
8787
}
8888

8989

samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Body2.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public boolean equals(java.lang.Object o) {
350350
Objects.equals(this.string, body2.string) &&
351351
Objects.equals(this.patternWithoutDelimiter, body2.patternWithoutDelimiter) &&
352352
Arrays.equals(this._byte, body2._byte) &&
353-
Arrays.equals(this.binary, body2.binary) &&
353+
Objects.equals(this.binary, body2.binary) &&
354354
Objects.equals(this.date, body2.date) &&
355355
Objects.equals(this.dateTime, body2.dateTime) &&
356356
Objects.equals(this.password, body2.password) &&
@@ -359,7 +359,7 @@ public boolean equals(java.lang.Object o) {
359359

360360
@Override
361361
public int hashCode() {
362-
return Objects.hash(integer, int32, int64, number, _float, _double, string, patternWithoutDelimiter, Arrays.hashCode(_byte), Arrays.hashCode(binary), date, dateTime, password, callback);
362+
return Objects.hash(integer, int32, int64, number, _float, _double, string, patternWithoutDelimiter, Arrays.hashCode(_byte), Objects.hashCode(binary), date, dateTime, password, callback);
363363
}
364364

365365

samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/Body3.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public boolean equals(java.lang.Object o) {
350350
Objects.equals(this.string, body3.string) &&
351351
Objects.equals(this.patternWithoutDelimiter, body3.patternWithoutDelimiter) &&
352352
Arrays.equals(this._byte, body3._byte) &&
353-
Arrays.equals(this.binary, body3.binary) &&
353+
Objects.equals(this.binary, body3.binary) &&
354354
Objects.equals(this.date, body3.date) &&
355355
Objects.equals(this.dateTime, body3.dateTime) &&
356356
Objects.equals(this.password, body3.password) &&
@@ -359,7 +359,7 @@ public boolean equals(java.lang.Object o) {
359359

360360
@Override
361361
public int hashCode() {
362-
return Objects.hash(integer, int32, int64, number, _float, _double, string, patternWithoutDelimiter, Arrays.hashCode(_byte), Arrays.hashCode(binary), date, dateTime, password, callback);
362+
return Objects.hash(integer, int32, int64, number, _float, _double, string, patternWithoutDelimiter, Arrays.hashCode(_byte), Objects.hashCode(binary), date, dateTime, password, callback);
363363
}
364364

365365

samples/client/petstore/java/feign/src/main/java/io/swagger/client/model/FormatTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ public boolean equals(java.lang.Object o) {
330330
Objects.equals(this._double, formatTest._double) &&
331331
Objects.equals(this.string, formatTest.string) &&
332332
Arrays.equals(this._byte, formatTest._byte) &&
333-
Arrays.equals(this.binary, formatTest.binary) &&
333+
Objects.equals(this.binary, formatTest.binary) &&
334334
Objects.equals(this.date, formatTest.date) &&
335335
Objects.equals(this.dateTime, formatTest.dateTime) &&
336336
Objects.equals(this.uuid, formatTest.uuid) &&
@@ -339,7 +339,7 @@ public boolean equals(java.lang.Object o) {
339339

340340
@Override
341341
public int hashCode() {
342-
return Objects.hash(integer, int32, int64, number, _float, _double, string, Arrays.hashCode(_byte), Arrays.hashCode(binary), date, dateTime, uuid, password);
342+
return Objects.hash(integer, int32, int64, number, _float, _double, string, Arrays.hashCode(_byte), Objects.hashCode(binary), date, dateTime, uuid, password);
343343
}
344344

345345

0 commit comments

Comments
 (0)