Below is my swagger 2.0 code
test:
type: object
properties:
'@class':
type: string
Generated enum class
public enum _classEnum { }
Generated getter and setter methods
@ApiModelProperty(example = "null", value = "Amount type")
@JsonProperty("@class")
public _classEnum getClass() {
return _class;
}
public void setClass(_classEnum _class) {
this._class = _class;
}
getClass() method throws compilation error, because java consider to override the getClass() method.
Eclipse java compilation Error:
The return type is incompatible with Object.getClass()
Below is my swagger 2.0 code
Generated enum class
public enum _classEnum { }Generated getter and setter methods
getClass() method throws compilation error, because java consider to override the getClass() method.
Eclipse java compilation Error:
The return type is incompatible with Object.getClass()