Skip to content

Commit c7735c8

Browse files
committed
sonarqube cleanup.
1 parent 63bc20b commit c7735c8

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

src/main/java/org/hdf5javalib/dataclass/HdfArray.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,8 @@ public byte[] getBytes() {
8080
public String toString() {
8181
try {
8282
return datatype.getInstance(String.class, bytes);
83-
} catch (InvocationTargetException e) {
84-
throw new RuntimeException(e);
85-
} catch (InstantiationException e) {
86-
throw new RuntimeException(e);
87-
} catch (IllegalAccessException e) {
88-
throw new RuntimeException(e);
89-
} catch (IOException e) {
90-
throw new RuntimeException(e);
83+
} catch (InvocationTargetException | InstantiationException | IllegalAccessException | IOException e) {
84+
throw new IllegalStateException(e);
9185
}
9286
}
9387

0 commit comments

Comments
 (0)