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
  • Loading branch information
qmonmert committed May 21, 2024
1 parent 1c6558f commit e9934cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class <%= persistClass %>Test {
<%_ for (const relationship of relationships.filter(rel => !rel.otherEntity.builtIn && (!embedded || (rel.otherEntity.embedded && rel.ownerSide)))) { _%>

@Test
void <%- relationship.relationshipName %>Test() throws Exception {
void <%- relationship.relationshipName %>Test() {
<%= persistClass %> <%= persistInstance %> = get<%= persistClass %>RandomSampleGenerator();
<%= relationship.otherEntity.persistClass %> <%= relationship.otherEntity.persistInstance %>Back = get<%= relationship.otherEntity.persistClass %>RandomSampleGenerator();
<%_ if (relationship.collection) { _%>
Expand Down

0 comments on commit e9934cf

Please sign in to comment.