Skip to content

Commit

Permalink
Sonar: Remove the declaration of thrown exception 'java.lang.Exceptio…
Browse files Browse the repository at this point in the history
…n', as it cannot be thrown from method's body (#26258)
  • Loading branch information
qmonmert committed May 24, 2024
1 parent 9eba447 commit bbee59a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class <%= persistClass %>Test {
<%_if (!updatableEntity) { _%>

@Test
void hashCodeVerifier() throws Exception {
void hashCodeVerifier() {
<%= persistClass %> <%= persistInstance %> = new <%= persistClass %>();
assertThat(<%= persistInstance %>.hashCode()).isZero();

Expand Down

0 comments on commit bbee59a

Please sign in to comment.