All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.codemodder.codemods.RemoveUnusedLocalVariableCodemod.description.md Maven / Gradle / Ivy

There is a newer version: 0.97.3
Show newest version
This change removes unused variables. Unused variables make the code harder to read, which will lead to confusion and bugs. We only remove variables that have no state-changing effects.

Our changes look something like this:

```diff
     catch (final UnsolvedSymbolException e) {
-      String errorMessage = "An unexpected exception happened";
       LOG.error("Problem resolving type of : {}", expr, e);
       return false;
     }
```




© 2015 - 2024 Weber Informatics LLC | Privacy Policy