Skip to content

Commit 11452e6

Browse files
committed
清理代码
1 parent 8a376f5 commit 11452e6

File tree

4 files changed

+8
-27
lines changed

4 files changed

+8
-27
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/pay/result/WxEntPayQueryResult.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
@XStreamAlias("xml")
1111
public class WxEntPayQueryResult extends WxPayBaseResult {
1212

13-
//############以下字段在return_code 和result_code都为SUCCESS的时候有返回##############
1413
/**
1514
* 商户订单号
1615
*/
@@ -65,22 +64,6 @@ public class WxEntPayQueryResult extends WxPayBaseResult {
6564
@XStreamAlias("desc")
6665
private String desc;
6766

68-
public String getReturnCode() {
69-
return this.returnCode;
70-
}
71-
72-
public void setReturnCode(String returnCode) {
73-
this.returnCode = returnCode;
74-
}
75-
76-
public String getReturnMsg() {
77-
return this.returnMsg;
78-
}
79-
80-
public void setReturnMsg(String returnMsg) {
81-
this.returnMsg = returnMsg;
82-
}
83-
8467
public String getPartnerTradeNo() {
8568
return this.partnerTradeNo;
8669
}

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/template/WxMpTemplate.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,47 +76,47 @@ public String toString() {
7676
private String example;
7777

7878
public String getTemplateId() {
79-
return templateId;
79+
return this.templateId;
8080
}
8181

8282
public void setTemplateId(String templateId) {
8383
this.templateId = templateId;
8484
}
8585

8686
public String getTitle() {
87-
return title;
87+
return this.title;
8888
}
8989

9090
public void setTitle(String title) {
9191
this.title = title;
9292
}
9393

9494
public String getPrimaryIndustry() {
95-
return primaryIndustry;
95+
return this.primaryIndustry;
9696
}
9797

9898
public void setPrimaryIndustry(String primaryIndustry) {
9999
this.primaryIndustry = primaryIndustry;
100100
}
101101

102102
public String getDeputyIndustry() {
103-
return deputyIndustry;
103+
return this.deputyIndustry;
104104
}
105105

106106
public void setDeputyIndustry(String deputyIndustry) {
107107
this.deputyIndustry = deputyIndustry;
108108
}
109109

110110
public String getContent() {
111-
return content;
111+
return this.content;
112112
}
113113

114114
public void setContent(String content) {
115115
this.content = content;
116116
}
117117

118118
public String getExample() {
119-
return example;
119+
return this.example;
120120
}
121121

122122
public void setExample(String example) {

weixin-java-mp/src/test/java/me/chanjar/weixin/mp/demo/WxMpEndpointServlet.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import java.io.IOException;
44

5-
import javax.servlet.ServletException;
65
import javax.servlet.http.HttpServlet;
76
import javax.servlet.http.HttpServletRequest;
87
import javax.servlet.http.HttpServletResponse;
@@ -33,7 +32,7 @@ public WxMpEndpointServlet(WxMpConfigStorage wxMpConfigStorage, WxMpService wxMp
3332

3433
@Override
3534
protected void service(HttpServletRequest request, HttpServletResponse response)
36-
throws ServletException, IOException {
35+
throws IOException {
3736

3837
response.setContentType("text/html;charset=utf-8");
3938
response.setStatus(HttpServletResponse.SC_OK);

weixin-java-mp/src/test/java/me/chanjar/weixin/mp/demo/WxMpOAuth2Servlet.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import java.io.IOException;
44

5-
import javax.servlet.ServletException;
65
import javax.servlet.http.HttpServlet;
76
import javax.servlet.http.HttpServletRequest;
87
import javax.servlet.http.HttpServletResponse;
@@ -23,7 +22,7 @@ public WxMpOAuth2Servlet(WxMpService wxMpService) {
2322

2423
@Override
2524
protected void service(HttpServletRequest request, HttpServletResponse response)
26-
throws ServletException, IOException {
25+
throws IOException {
2726

2827
response.setContentType("text/html;charset=utf-8");
2928
response.setStatus(HttpServletResponse.SC_OK);

0 commit comments

Comments
 (0)