修改代码结构
This commit is contained in:
parent
3e5a358b48
commit
679a3e7bf2
|
|
@ -38,10 +38,10 @@ public enum DockStatusEnum
|
||||||
*/
|
*/
|
||||||
TO_BE_CALIBRATED(5, "To Be Calibrated");
|
TO_BE_CALIBRATED(5, "To Be Calibrated");
|
||||||
|
|
||||||
private final Integer code;
|
private final int code;
|
||||||
private final String description;
|
private final String description;
|
||||||
|
|
||||||
DockStatusEnum(Integer code, String description)
|
DockStatusEnum(int code, String description)
|
||||||
{
|
{
|
||||||
this.code = code;
|
this.code = code;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
|
|
@ -49,7 +49,7 @@ public enum DockStatusEnum
|
||||||
|
|
||||||
public Integer getCode()
|
public Integer getCode()
|
||||||
{
|
{
|
||||||
return code;
|
return (Integer) code;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDescription()
|
public String getDescription()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue