Skip to content

Commit bc6815f

Browse files
authored
Merge pull request swagger-api#1923 from JamieMagee/self-assignment-fix
Fix setter so value is actually set
2 parents 16553a2 + 0bdd8d4 commit bc6815f

File tree

1 file changed

+1
-1
lines changed
  • modules/swagger-jaxrs/src/test/java/io/swagger/models

1 file changed

+1
-1
lines changed

modules/swagger-jaxrs/src/test/java/io/swagger/models/Pet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public CategoryWithApiModel getCategoryWithApiModel() {
4343
}
4444

4545
public void setCategoryWithApiModel(CategoryWithApiModel category) {
46-
this.categoryWithApiModel = categoryWithApiModel;
46+
this.categoryWithApiModel = category;
4747
}
4848

4949
@XmlElement(name = "name")

0 commit comments

Comments
 (0)