Code to improve:
final Collection<DiscussionTopics> topics = s.getTopics(); final boolean anyTopics = topics != null && !topics.isEmpty();
Change to:
import org.apache.commons.collections.CollectionUtils;
!CollectionUtils.isEmpty(s.getTopics())
Code to improve:
final Collection<DiscussionTopics> topics = s.getTopics(); final boolean anyTopics = topics != null && !topics.isEmpty();
Change to:
import org.apache.commons.collections.CollectionUtils;
!CollectionUtils.isEmpty(s.getTopics())
下一篇:[Java] Modules
list基本操作
Java list顺序打乱
e => in the parameter declaration 比如没有call by name def runInThread(block: () => Unit) { new ...
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M