Use entrySet() instead of keySet()+get() in WARCSpout and Solr IndexerBolt
维护者通常 1 天内回复
评估
调研方向
检查 external/warc/.../WARCSpout.java 中的 open() 和 external/solr/.../bolt/IndexerBolt.java 中的 execute()。找到遍历 keySet() 并为每个键调用 get() 的循环,然后检查每个循环如何使用 map 中的值。当两个循环都使用 entrySet() 且现有行为保持不变时,任务完成。
由索引模型根据 Issue 内容生成。
描述
SpotBugs reports WMI_WRONG_MAP_ITERATOR in two places, where the code
iterates keySet() and then calls get() for each key:
external/warc/.../WARCSpout.java(open(), reading the HDFS config map)external/solr/.../bolt/IndexerBolt.java(execute(), iterating metadata)
Iterating entrySet() avoids the extra lookup per entry. The change has no
behavior impact. Would you accept a small PR for this? Happy to do it.
- 主要语言
- Java
- 星标
- 1k
- 派生
- 295
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 61
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/stormcrawler 的其他 Issue
-
Archetypes' http.content.limit cuts sitemaps, which then fail to parse可能已有人在做 @dpol1 今天认领。 未关闭bug
apache/stormcrawler#2305 · 3 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 55/100
apache/stormcrawler#2304 · 1 条评论 ·
维护者通常 1 天内回复
-
FetchItemQueues removes empty queues, which skips the politeness delay可能已有人在做 @GGraziadei 今天认领。 未关闭bug
apache/stormcrawler#2303 · 2 条评论 · 已指派 2 人 ·
维护者通常 1 天内回复
-
[Improvement] Work towards Maven 4 Compatibility可能已有人在做 @mvolikas 于 363 天前认领。 未关闭good first issue help wanted
apache/stormcrawler#1662 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Delete redirected pages可能重新可做 @tomatotomata 于 96 天前认领,目前没有进行中的 PR。 未关闭core good first issue
难度 4/5 3-5 天 新手友好度 48/100
apache/stormcrawler#994 · 5 条评论 ·
维护者通常 1 天内回复
查看 apache/stormcrawler 的全部 Issue
相似的 Issue
-
bug web-ui
难度 2/5 1-3 小时 新手友好度 67/100
jenkinsci/jenkins#27705 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100
googleads/googleads-mobile-flutter#1541 ·
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
Julow/Unexpected-Keyboard#1490 ·
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
Vakore/ZappierGames#275 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
unitycatalog/unitycatalog#2148 ·
维护者通常 2 天内回复