Skip to content

Commit c738a7c

Browse files
committed
refs #2621 - fixes ComposedProperty equals
1 parent 4ea7802 commit c738a7c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

modules/swagger-models/src/main/java/io/swagger/models/properties/ComposedProperty.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ public void setAllOf(List<Property> allOf) {
6565
this.allOf = allOf;
6666
}
6767

68+
public ComposedProperty allOf(List<Property> allOf) {
69+
this.allOf = allOf;
70+
return this;
71+
}
72+
6873
@Override
6974
public ComposedProperty readOnly() {
7075
this.setReadOnly(Boolean.TRUE);
@@ -86,6 +91,9 @@ public boolean equals(Object o) {
8691
if (!(o instanceof ComposedProperty)) {
8792
return false;
8893
}
94+
if (!super.equals(o)) {
95+
return false;
96+
}
8997

9098
return Objects.equals(allOf, ((ComposedProperty) o).allOf);
9199
}

0 commit comments

Comments
 (0)