mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
Remove redundant type arguments
This commit is contained in:
@@ -17,7 +17,7 @@ public class WxMpMassNews implements Serializable {
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 565937155013581016L;
|
||||
private List<WxMpMassNewsArticle> articles = new ArrayList<WxMpMassNewsArticle>();
|
||||
private List<WxMpMassNewsArticle> articles = new ArrayList<>();
|
||||
|
||||
public List<WxMpMassNewsArticle> getArticles() {
|
||||
return this.articles;
|
||||
|
||||
@@ -22,7 +22,7 @@ public class WxMpMaterial {
|
||||
}
|
||||
|
||||
public Map<String, String> getForm() {
|
||||
Map<String, String> form = new HashMap<String, String>();
|
||||
Map<String, String> form = new HashMap<>();
|
||||
form.put("title", this.videoTitle);
|
||||
form.put("introduction", this.videoIntroduction);
|
||||
return form;
|
||||
|
||||
@@ -12,7 +12,7 @@ public class WxMpMaterialNews implements Serializable {
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -3283203652013494976L;
|
||||
private List<WxMpMaterialNewsArticle> articles = new ArrayList<WxMpMaterialNewsArticle>();
|
||||
private List<WxMpMaterialNewsArticle> articles = new ArrayList<>();
|
||||
|
||||
public List<WxMpMaterialNewsArticle> getArticles() {
|
||||
return this.articles;
|
||||
|
||||
@@ -16,7 +16,7 @@ public class WxMpTemplateMessage implements Serializable {
|
||||
private String templateId;
|
||||
private String url;
|
||||
private String topColor;
|
||||
private List<WxMpTemplateData> data = new ArrayList<WxMpTemplateData>();
|
||||
private List<WxMpTemplateData> data = new ArrayList<>();
|
||||
|
||||
public String getToUser() {
|
||||
return this.toUser;
|
||||
|
||||
@@ -20,7 +20,7 @@ public class WxMpXmlOutNewsMessage extends WxMpXmlOutMessage {
|
||||
protected int articleCount;
|
||||
|
||||
@XStreamAlias("Articles")
|
||||
protected final List<Item> articles = new ArrayList<Item>();
|
||||
protected final List<Item> articles = new ArrayList<>();
|
||||
|
||||
public WxMpXmlOutNewsMessage() {
|
||||
this.msgType = WxConsts.XML_MSG_NEWS;
|
||||
|
||||
@@ -17,7 +17,7 @@ import java.util.List;
|
||||
*/
|
||||
public final class NewsBuilder extends BaseBuilder<NewsBuilder> {
|
||||
|
||||
private List<WxMpCustomMessage.WxArticle> articles = new ArrayList<WxMpCustomMessage.WxArticle>();
|
||||
private List<WxMpCustomMessage.WxArticle> articles = new ArrayList<>();
|
||||
|
||||
public NewsBuilder() {
|
||||
this.msgType = WxConsts.CUSTOM_MSG_NEWS;
|
||||
|
||||
@@ -11,7 +11,7 @@ import java.util.List;
|
||||
*/
|
||||
public final class NewsBuilder extends BaseBuilder<NewsBuilder, WxMpXmlOutNewsMessage> {
|
||||
|
||||
protected final List<WxMpXmlOutNewsMessage.Item> articles = new ArrayList<WxMpXmlOutNewsMessage.Item>();
|
||||
protected final List<WxMpXmlOutNewsMessage.Item> articles = new ArrayList<>();
|
||||
|
||||
public NewsBuilder addArticle(WxMpXmlOutNewsMessage.Item item) {
|
||||
this.articles.add(item);
|
||||
|
||||
@@ -14,7 +14,7 @@ public class WxMpUserList {
|
||||
|
||||
protected int total = -1;
|
||||
protected int count = -1;
|
||||
protected List<String> openIds = new ArrayList<String>();
|
||||
protected List<String> openIds = new ArrayList<>();
|
||||
protected String nextOpenId;
|
||||
public int getTotal() {
|
||||
return this.total;
|
||||
|
||||
Reference in New Issue
Block a user