Missing break statement in switch case
维护者通常 1 天内回复
@anukalp2804 已经在做这个了。
开始于 2026年5月4日。
评估
这个 Issue 还没有评估数据。
描述
Description
SonarCloud reports a violation of rule java:S128 , A case block in the switch statement does not end with a break, return, or throw. This can cause the execution to continue into the next case unintentionally.
Sonar Issue
https://sonarcloud.io/project/issues?open=AZGODvhLNLTUq8J6Y65s&id=apache_iotdb
How to fix
To fix this, add a break at the end of the case block.
Example
case HANDSHAKE_DATANODE_V1:{
try {
......
} finally {
..........
}
break;
}
- 主要语言
- Java
- 星标
- 6.4k
- 派生
- 1.2k
- 平均合并
- 1 天 20 小时
- 30 天内合并 PR
- 137
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/iotdb 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
apache/iotdb#18655 · 1 个 reaction ·
维护者通常 1 天内回复
-
IoTDB Edge: stop-edge.sh does not stop its own process when IOTDB_HOME is set, and reports success未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
redhat-developer/intellij-quarkus#1626 ·
-
Type/Bug
难度 2/5 1-3 小时 新手友好度 68/100
wso2/product-integrator-mi#5061 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
quarkiverse/quarkus-roq#1277 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
apache/logging-site#48 ·
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
apache/maven-surefire#3496 · 3 条评论 ·
维护者通常 1 天内回复