Skip to content

Commit 7e5aa45

Browse files
committed
string 默认初始化为 ""
1 parent f70aae3 commit 7e5aa45

16 files changed

Lines changed: 44 additions & 44 deletions

File tree

common-coding/src/main/java/net/coding/program/network/model/code/Attachment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class Attachment implements Serializable {
1616
public int id;
1717
@SerializedName("name")
1818
@Expose
19-
public String name;
19+
public String name = "";
2020
@SerializedName("size")
2121
@Expose
2222
public long size;

common-coding/src/main/java/net/coding/program/network/model/code/Branch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class Branch implements Serializable {
1111

1212
@SerializedName("name")
1313
@Expose
14-
public String name;
14+
public String name = "";
1515
@SerializedName("last_commit")
1616
@Expose
1717
public LastCommit lastCommit;

common-coding/src/main/java/net/coding/program/network/model/code/BranchMetrics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public class BranchMetrics implements Serializable {
1111

1212
@SerializedName("base")
1313
@Expose
14-
public String base;
14+
public String base = "";
1515
@SerializedName("ahead")
1616
@Expose
1717
public int ahead;

common-coding/src/main/java/net/coding/program/network/model/code/LastCommit.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ public class LastCommit implements Serializable {
1313

1414
@SerializedName("shortMessage")
1515
@Expose
16-
public String shortMessage;
16+
public String shortMessage = "";
1717
@SerializedName("commitId")
1818
@Expose
19-
public String commitId;
19+
public String commitId = "";
2020
@SerializedName("commitTime")
2121
@Expose
2222
public long commitTime;

common-coding/src/main/java/net/coding/program/network/model/code/ResourceReference.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ public class ResourceReference implements Serializable {
2222
public int targetId;
2323
@SerializedName("title")
2424
@Expose
25-
public String title;
25+
public String title = "";
2626
@SerializedName("link")
2727
@Expose
28-
public String link;
28+
public String link = "";
2929
@SerializedName("img")
3030
@Expose
31-
public String img;
31+
public String img = "";
3232
@SerializedName("status")
3333
@Expose
3434
public int status;

common-coding/src/main/java/net/coding/program/network/model/common/AppVersion.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ public class AppVersion extends BaseHttpResult implements Serializable {
3535
public String version = "";
3636
@SerializedName("url")
3737
@Expose
38-
public String url;
38+
public String url = "";
3939
@SerializedName("message")
4040
@Expose
41-
public String message;
41+
public String message = "";
4242
@SerializedName("status")
4343
@Expose
4444
public int status;

common-coding/src/main/java/net/coding/program/network/model/file/Share.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ public class Share implements Serializable {
3232
public long createdAt;
3333
@SerializedName("hash")
3434
@Expose
35-
public String hash;
35+
public String hash = "";
3636
@SerializedName("url")
3737
@Expose
38-
public String url;
38+
public String url = "";
3939

4040
}

common-coding/src/main/java/net/coding/program/network/model/file/UploadToken.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ public class UploadToken implements Serializable {
1414

1515
@SerializedName("uptoken")
1616
@Expose
17-
public String uptoken;
17+
public String uptoken = "";
1818
@SerializedName("authToken")
1919
@Expose
20-
public String authToken;
20+
public String authToken = "";
2121
@SerializedName("time")
2222
@Expose
23-
public String time;
23+
public String time = "";
2424
@SerializedName("userId")
2525
@Expose
2626
public int userId;

common-coding/src/main/java/net/coding/program/network/model/point/WeixinOrder.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,32 @@ public class WeixinOrder implements Serializable {
1515

1616
@SerializedName("package")
1717
@Expose
18-
public String _package;
18+
public String _package = "";
1919
@SerializedName("orderId")
2020
@Expose
21-
public String orderId;
21+
public String orderId = "";
2222
@SerializedName("paymentId")
2323
@Expose
24-
public String paymentId;
24+
public String paymentId = "";
2525
@SerializedName("payMethod")
2626
@Expose
27-
public String payMethod;
27+
public String payMethod = "";
2828
@SerializedName("appId")
2929
@Expose
30-
public String appId;
30+
public String appId = "";
3131
@SerializedName("sign")
3232
@Expose
33-
public String sign;
33+
public String sign = "";
3434
@SerializedName("partnerId")
3535
@Expose
36-
public String partnerId;
36+
public String partnerId = "";
3737
@SerializedName("prepayId")
3838
@Expose
39-
public String prepayId;
39+
public String prepayId = "";
4040
@SerializedName("nonceStr")
4141
@Expose
42-
public String nonceStr;
42+
public String nonceStr = "";
4343
@SerializedName("timestamp")
4444
@Expose
45-
public String timestamp;
45+
public String timestamp = "";
4646
}

common-coding/src/main/java/net/coding/program/network/model/task/Board.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ public class Board implements Serializable {
2222
public int projectId;
2323
@SerializedName("title")
2424
@Expose
25-
public String title;
25+
public String title = "";
2626
@SerializedName("remark")
2727
@Expose
28-
public String remark;
28+
public String remark = "";
2929
@SerializedName("created_at")
3030
@Expose
3131
public long createdAt;

0 commit comments

Comments
 (0)