Skip to content

Commit 35c1be2

Browse files
committed
修复一些打包时发现的不规范的javadoc
1 parent b7542bb commit 35c1be2

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/WxCryptUtil.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,23 @@
1313
import javax.xml.parsers.ParserConfigurationException;
1414
import java.io.StringReader;
1515
import java.nio.charset.Charset;
16+
import java.nio.charset.StandardCharsets;
1617
import java.util.Arrays;
1718
import java.util.Random;
1819

1920
/**
21+
* <pre>
2022
* 对公众平台发送给公众账号的消息加解密示例代码.
21-
*
22-
* @copyright Copyright (c) 1998-2014 Tencent Inc.
23+
* Copyright (c) 1998-2014 Tencent Inc.
2324
* 针对org.apache.commons.codec.binary.Base64,
2425
* 需要导入架包commons-codec-1.9(或commons-codec-1.8等其他版本)
2526
* 官方下载地址:http://commons.apache.org/proper/commons-codec/download_codec.cgi
27+
* </pre>
2628
*/
2729
public class WxCryptUtil {
2830

2931
private static final Base64 base64 = new Base64();
30-
private static final Charset CHARSET = Charset.forName("utf-8");
32+
private static final Charset CHARSET = StandardCharsets.UTF_8;
3133

3234
private static final ThreadLocal<DocumentBuilder> builderLocal = new ThreadLocal<DocumentBuilder>() {
3335
@Override
@@ -76,8 +78,6 @@ static String extractEncryptPart(String xml) {
7678

7779
/**
7880
* 将一个数字转换成生成4个字节的网络字节序bytes数组
79-
*
80-
* @param number
8181
*/
8282
private static byte[] number2BytesInNetworkOrder(int number) {
8383
byte[] orderBytes = new byte[4];
@@ -90,8 +90,6 @@ private static byte[] number2BytesInNetworkOrder(int number) {
9090

9191
/**
9292
* 4个字节的网络字节序bytes数组还原成一个数字
93-
*
94-
* @param bytesInNetworkOrder
9593
*/
9694
private static int bytesNetworkOrder2Number(byte[] bytesInNetworkOrder) {
9795
int sourceNumber = 0;

weixin-java-common/src/main/java/me/chanjar/weixin/common/util/http/okhttp/OkHttpProxyInfo.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public class OkHttpProxyInfo {
1313
private final String proxyUsername;
1414
private final String proxyPassword;
1515
private final ProxyType proxyType;
16+
1617
public OkHttpProxyInfo(ProxyType proxyType, String proxyHost, int proxyPort, String proxyUser, String proxyPassword) {
1718
this.proxyType = proxyType;
1819
this.proxyAddress = proxyHost;
@@ -91,8 +92,6 @@ public String getProxyPassword() {
9192

9293
/**
9394
* 返回 java.net.Proxy
94-
*
95-
* @return
9695
*/
9796
public Proxy getProxy() {
9897
Proxy proxy = null;

weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/message/WxMaMessageRouterRule.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ protected boolean test(WxMaMessage wxMessage) {
189189

190190
/**
191191
* 处理微信推送过来的消息
192-
*
193-
* @return true 代表继续执行别的router,false 代表停止执行别的router
194192
*/
195193
protected void service(WxMaMessage wxMessage,
196194
Map<String, Object> context,

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ public interface WxMpService {
422422
void initHttp();
423423

424424
/**
425-
* @return
425+
* @return RequestHttp对象
426426
*/
427427
RequestHttp getRequestHttp();
428428

0 commit comments

Comments
 (0)