apache / apache/iotdb

Missing break statement in switch case

Aperta
#17,594 3 commenti 1 reazione 1 assegnatario Rivendicata da @anukalp2804 Vedi su GitHub
Lingua principale
Java
Stelle
6.4k
Fork
1.2k
Merge medio
1g 23h
PR unite (30g)
115

Descrizione

## 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;
}
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.