提交 39cef339 编写于 作者: 街头小贩's avatar 街头小贩

删除无效的包导入

上级 be8720c1
......@@ -4,8 +4,6 @@ import com.apobates.forum.utils.lang.EnumArchitecture;
import java.util.Arrays;
import java.util.Collections;
import java.util.EnumSet;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
......
......@@ -13,7 +13,7 @@ import java.util.Map;
* @author xiaofanku
* @since 20200510
*/
public class MemberProfileBean implements Serializable {
public final class MemberProfileBean implements Serializable {
//会员ID
private final long id;
private final String nickname;
......
package com.apobates.forum.thrones.admin.controller;
import java.util.HashMap;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.Stream;
......
......@@ -26,7 +26,6 @@ import com.apobates.forum.utils.TipMessage;
import com.apobates.forum.utils.persistence.Page;
import com.apobates.forum.utils.persistence.PageRequest;
import com.apobates.forum.utils.persistence.Pageable;
import java.util.stream.Collector;
import javax.validation.Valid;
import org.springframework.validation.BindingResult;
......
......@@ -431,8 +431,13 @@ public class MessageController {
this.receives = reces;
this.everyone = isEveryOne;
//
this.receiver = Long.valueOf(reces.get(0).get("id"));
this.receiverNickname = reces.get(0).get("nickname");
if(!reces.isEmpty()){
this.receiver = Long.valueOf(reces.get(0).get("id"));
this.receiverNickname = reces.get(0).get("nickname");
}else{
this.receiver =0L;
this.receiverNickname="-";
}
this.receiverURI = String.format("/member/%d.xhtml", receiver);
}
......
......@@ -14,7 +14,6 @@ import com.apobates.forum.utils.TipMessage;
import com.google.gson.Gson;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
......
......@@ -2,8 +2,6 @@ package com.apobates.forum.thrones.rss;
import java.io.Serializable;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
/**
* RSS条目结果
*
......@@ -22,7 +20,7 @@ public class TopicRssResult implements Serializable {
this.title = title;
this.link = link;
this.desc = desc;
this.items = new CopyOnWriteArrayList<>(items);
this.items = List.copyOf(items);
}
public String getTitle() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册