SpartanRefactoring / Main

Eclipse plugin that performs automatic refactoring of Java source code, making it shorter, more idiomatic and more readable
https://www.spartan.org.il
100 stars 56 forks source link

not replacing always true statement with removing the if #1586

Closed Kolikant closed 7 years ago

Kolikant commented 7 years ago

I made exceptionally stupid code

image

however, even though the statement is always true, spartanization left it in

image

amirsagiv83 commented 7 years ago

We don't have a tipper for this particular situation. IntelliJ already has a built in inspection that checks for this and is enabled by default so we decided to leave this out.