Skip to content

Commit

Permalink
Drop workaround following upstream fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Nov 13, 2024
1 parent ef62c31 commit a04dd14
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,6 @@ public J.ClassDeclaration visitClassDeclaration(J.ClassDeclaration classDecl, Ex
maybeAddImport("org.mockito.junit.jupiter.MockitoSettings", false);
maybeAddImport("org.mockito.quality.Strictness", false);
}

// Workaround first modifier incorrectly getting a trailing space as part of the prefix
cd = cd.withModifiers(ListUtils.mapFirst(cd.getModifiers(),
modifier -> modifier.withPrefix(modifier.getPrefix().withWhitespace(
modifier.getPrefix().getLastWhitespace().replaceAll(" $", "")))));
}
}

Expand Down

0 comments on commit a04dd14

Please sign in to comment.