apache / apache/iotdb

Missing break statement in switch case

オープン
#17,594 コメント 3 件 リアクション 1 件 担当者 1 名 @anukalp2804 が担当を希望しています GitHub で見る
主要言語
Java
スター
6.4k
フォーク
1.2k
平均マージ
1日 23時間
マージ済み PR(30日)
115

説明

## 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
```tsx
case HANDSHAKE_DATANODE_V1:{
try {
......
} finally {
..........
}
break;
}
```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。