Better control on setter, getter (for boolean, non-boolean) (#6177)

* better control on setter, boolean getter

* improve test casees for getter and setter
This commit is contained in:
wing328
2017-07-26 19:57:50 +08:00
committed by GitHub
parent 66f2f70634
commit e807b81471
7 changed files with 77 additions and 13 deletions

View File

@@ -42,7 +42,7 @@ public class Cat extends Animal {
* @return declawed
**/
@ApiModelProperty(value = "")
public Boolean getDeclawed() {
public Boolean isDeclawed() {
return declawed;
}

View File

@@ -196,7 +196,7 @@ public class Order {
* @return complete
**/
@ApiModelProperty(value = "")
public Boolean getComplete() {
public Boolean isComplete() {
return complete;
}