Skip to content

Commit

Permalink
[Improve][All] Improvement of wrapper data type
Browse files Browse the repository at this point in the history
  • Loading branch information
wuchunfu committed Oct 23, 2023
1 parent a8abc4a commit 5bce238
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ public class RestRequest implements Serializable {
private static final long serialVersionUID = 1L;

@Schema(example = "10", required = true)
private int pageSize = 10;
private Integer pageSize = 10;

@Schema(example = "1", required = true)
private int pageNum = 1;
private Integer pageNum = 1;

@Schema(example = "", description = "e.g. create_time")
private String sortField;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class RouterTree<T> {

private String type;

private boolean display;
private Boolean display;

private Double order;

Expand All @@ -58,9 +58,9 @@ public class RouterTree<T> {

private String parentId;

private boolean hasParent = false;
private Boolean hasParent = false;

private boolean hasChildren = false;
private Boolean hasChildren = false;

private Date createTime;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public class VueRouter<T> implements Serializable {

private List<VueRouter<T>> children;

@JsonIgnore private boolean hasParent = false;
@JsonIgnore private Boolean hasParent = false;

@JsonIgnore private boolean hasChildren = false;
@JsonIgnore private Boolean hasChildren = false;

public void initChildren() {
this.children = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class AlertTemplate implements Serializable {
private Boolean restart;
private Integer restartIndex;
private Integer totalRestart;
private boolean atAll = false;
private Boolean atAll = false;
private Integer allJobs;
private Integer affectedJobs;
private String user;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
public class AppControl {

/** allow to start the application */
private boolean allowStart;
private Boolean allowStart;

/** allow to stop the application */
private boolean allowStop;
private Boolean allowStop;

/** allow to build the application */
private boolean allowBuild;
private Boolean allowBuild;
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class EmailConfig {
private String from;
private String userName;
private String password;
private boolean ssl;
private Boolean ssl;

/**
* Constructs the EmailConfig object from the given settings map.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

@Data
public class ResponseResult<T> {
private int status;
private Integer status;
private String msg;
private T result;
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ public class FlinkSql {
private Integer candidate;

private Date createTime;
private transient boolean effective = false;
private transient Boolean effective = false;
/** sql diff */
private transient boolean sqlDifference = false;
private transient Boolean sqlDifference = false;
/** dependency diff */
private transient boolean dependencyDifference = false;
private transient Boolean dependencyDifference = false;

public FlinkSql() {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public class Setting implements Serializable {
private Integer type;

private String description;
private transient boolean editable = false;
private transient boolean submitting = false;
private transient Boolean editable = false;
private transient Boolean submitting = false;

private transient String flinkHome;
private transient String flinkConf;
Expand Down

0 comments on commit 5bce238

Please sign in to comment.