Skip to content

Fix duplicate catch blocks by combining into multi-catch#17247

Open
anukalp2804 wants to merge 1 commit intoapache:masterfrom
anukalp2804:fix/combine-duplicate-catch
Open

Fix duplicate catch blocks by combining into multi-catch#17247
anukalp2804 wants to merge 1 commit intoapache:masterfrom
anukalp2804:fix/combine-duplicate-catch

Conversation

@anukalp2804
Copy link
Contributor

Description

This PR fixes a duplicate catch blocks by combining into multi-catch.

The change is formatting-only and does not affect behavior or logic.

This change addresses a Sonar-reported Catches should be combined java:S2147
https://sonarcloud.io/project/issues?open=AZE17wi77_EafdyqQKlF&id=apache_iotdb

Affected file

example/session/src/main/java/org/apache/iotdb/TableModelSessionPoolExample.java
line number : 139, 173, 186

This PR has:

  • been self-reviewed.
  • been built locally with mvn spotless:apply.
  • been built locally with mvn clean package -DskipTests.
  • been built locally with mvn -pl iotdb-core -am test -DskipTests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant