mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
修复更多的warning,尤其是导致打包warning的不规范或不必要的javadoc
This commit is contained in:
@@ -28,7 +28,7 @@ public class WxCpMessage implements Serializable {
|
||||
private String hqMusicUrl;
|
||||
private String safe;
|
||||
private List<WxArticle> articles = new ArrayList<WxArticle>();
|
||||
|
||||
|
||||
public String getToUser() {
|
||||
return toUser;
|
||||
}
|
||||
@@ -63,7 +63,7 @@ public class WxCpMessage implements Serializable {
|
||||
public String getMsgType() {
|
||||
return msgType;
|
||||
}
|
||||
|
||||
|
||||
public String getSafe() {
|
||||
return safe;
|
||||
}
|
||||
@@ -135,18 +135,18 @@ public class WxCpMessage implements Serializable {
|
||||
public void setArticles(List<WxArticle> articles) {
|
||||
this.articles = articles;
|
||||
}
|
||||
|
||||
|
||||
public String toJson() {
|
||||
return WxCpGsonBuilder.INSTANCE.create().toJson(this);
|
||||
}
|
||||
|
||||
|
||||
public static class WxArticle {
|
||||
|
||||
|
||||
private String title;
|
||||
private String description;
|
||||
private String url;
|
||||
private String picUrl;
|
||||
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
@@ -171,12 +171,11 @@ public class WxCpMessage implements Serializable {
|
||||
public void setPicUrl(String picUrl) {
|
||||
this.picUrl = picUrl;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获得文本消息builder
|
||||
* @return
|
||||
*/
|
||||
public static TextBuilder TEXT() {
|
||||
return new TextBuilder();
|
||||
@@ -184,7 +183,6 @@ public class WxCpMessage implements Serializable {
|
||||
|
||||
/**
|
||||
* 获得图片消息builder
|
||||
* @return
|
||||
*/
|
||||
public static ImageBuilder IMAGE() {
|
||||
return new ImageBuilder();
|
||||
@@ -192,23 +190,20 @@ public class WxCpMessage implements Serializable {
|
||||
|
||||
/**
|
||||
* 获得语音消息builder
|
||||
* @return
|
||||
*/
|
||||
public static VoiceBuilder VOICE() {
|
||||
return new VoiceBuilder();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获得视频消息builder
|
||||
* @return
|
||||
*/
|
||||
public static VideoBuilder VIDEO() {
|
||||
return new VideoBuilder();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获得图文消息builder
|
||||
* @return
|
||||
*/
|
||||
public static NewsBuilder NEWS() {
|
||||
return new NewsBuilder();
|
||||
@@ -216,10 +211,9 @@ public class WxCpMessage implements Serializable {
|
||||
|
||||
/**
|
||||
* 获得文件消息builder
|
||||
* @return
|
||||
*/
|
||||
public static FileBuilder FILE() {
|
||||
return new FileBuilder();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -198,7 +198,6 @@ public class WxCpXmlMessage implements Serializable {
|
||||
* {@link me.chanjar.weixin.common.api.WxConsts#XML_MSG_EVENT}
|
||||
* </pre>
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getMsgType() {
|
||||
return msgType;
|
||||
@@ -404,7 +403,6 @@ public class WxCpXmlMessage implements Serializable {
|
||||
* @param timestamp
|
||||
* @param nonce
|
||||
* @param msgSignature
|
||||
* @return
|
||||
*/
|
||||
public static WxCpXmlMessage fromEncryptedXml(
|
||||
String encryptedXml,
|
||||
@@ -542,7 +540,6 @@ public class WxCpXmlMessage implements Serializable {
|
||||
|
||||
/**
|
||||
* 扫描类型,一般是qrcode
|
||||
* @return
|
||||
*/
|
||||
public String getScanType() {
|
||||
|
||||
@@ -555,7 +552,6 @@ public class WxCpXmlMessage implements Serializable {
|
||||
|
||||
/**
|
||||
* 扫描结果,即二维码对应的字符串信息
|
||||
* @return
|
||||
*/
|
||||
public String getScanResult() {
|
||||
return scanResult;
|
||||
|
||||
@@ -14,14 +14,14 @@ public abstract class WxCpXmlOutMessage {
|
||||
@XStreamAlias("ToUserName")
|
||||
@XStreamConverter(value=XStreamCDataConverter.class)
|
||||
protected String toUserName;
|
||||
|
||||
|
||||
@XStreamAlias("FromUserName")
|
||||
@XStreamConverter(value=XStreamCDataConverter.class)
|
||||
protected String fromUserName;
|
||||
|
||||
|
||||
@XStreamAlias("CreateTime")
|
||||
protected Long createTime;
|
||||
|
||||
|
||||
@XStreamAlias("MsgType")
|
||||
@XStreamConverter(value=XStreamCDataConverter.class)
|
||||
protected String msgType;
|
||||
@@ -57,14 +57,13 @@ public abstract class WxCpXmlOutMessage {
|
||||
public void setMsgType(String msgType) {
|
||||
this.msgType = msgType;
|
||||
}
|
||||
|
||||
|
||||
protected String toXml() {
|
||||
return XStreamTransformer.toXml((Class)this.getClass(), this);
|
||||
}
|
||||
|
||||
/**
|
||||
* 转换成加密的xml格式
|
||||
* @return
|
||||
*/
|
||||
public String toEncryptedXml(WxCpConfigStorage wxCpConfigStorage) {
|
||||
String plainXml = toXml();
|
||||
@@ -74,7 +73,6 @@ public abstract class WxCpXmlOutMessage {
|
||||
|
||||
/**
|
||||
* 获得文本消息builder
|
||||
* @return
|
||||
*/
|
||||
public static TextBuilder TEXT() {
|
||||
return new TextBuilder();
|
||||
@@ -82,7 +80,6 @@ public abstract class WxCpXmlOutMessage {
|
||||
|
||||
/**
|
||||
* 获得图片消息builder
|
||||
* @return
|
||||
*/
|
||||
public static ImageBuilder IMAGE() {
|
||||
return new ImageBuilder();
|
||||
@@ -90,23 +87,20 @@ public abstract class WxCpXmlOutMessage {
|
||||
|
||||
/**
|
||||
* 获得语音消息builder
|
||||
* @return
|
||||
*/
|
||||
public static VoiceBuilder VOICE() {
|
||||
return new VoiceBuilder();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获得视频消息builder
|
||||
* @return
|
||||
*/
|
||||
public static VideoBuilder VIDEO() {
|
||||
return new VideoBuilder();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获得图文消息builder
|
||||
* @return
|
||||
*/
|
||||
public static NewsBuilder NEWS() {
|
||||
return new NewsBuilder();
|
||||
|
||||
Reference in New Issue
Block a user