apache / apache/iotdb

Missing break statement in switch case

Ouverte
#17,594 3 commentaires 1 réaction 1 personne assignée Réclamée par @anukalp2804 Voir sur GitHub
Langage dominant
Java
Étoiles
6.4k
Forks
1.2k
Merge moyen
1 j 23 h
PR mergées (30 j)
115

Description

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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.