lombok-intellij-plugin icon indicating copy to clipboard operation
lombok-intellij-plugin copied to clipboard

Feature: remove unnecessary @SneakThrows annotations on save

Open spotlesscoder opened this issue 4 years ago • 0 comments

Short description

When I add @SneakyThrows to a method, then change the implementation of the method so that it can never throw a declared exception, then I sometimes forget to remove the @SneakyThrows

Expected behavior

On file save, the plugin should check if there is any SneakyThrows in the changed files that could be removed and either remove them automatically or add a warning to the editor. (these two behaviours should be configurable)

spotlesscoder avatar Apr 24 '21 08:04 spotlesscoder