摘要: 缺陷描述 不要在迭代器中再使用entry对象 漏洞与风险 允许entrySet()方法返回底层Map的视图,其中包含Iterator和Map.Entry。这在几个Map实现中使用,但有可能产生令人讨厌的代码错误。如果map b为entrySet返回这样的迭代器,则a.addAll(b.entrySe 阅读全文
posted @ 2020-06-24 15:35 CaptainFM 阅读(142) 评论(0) 推荐(0) 编辑