JetBrains/intellij-community — pull request #217 by md-5 (2014-10-24 11:34:41+00:00)
Title: [Decompiler] Don't include redundant casts even when castAlways is true.

In the previous fernflower binaries, this was the case, however inexplicably this code has been absent in the source since day one. Adding this check prevents instances of duplicate casts such as `((String) ((String) "test"))` or `(Type) objectOfType` in method calls, which is completely redundant.

@trespasserw as mentioned previously I currently maintain a forked fernflower based on modified bytecode from the last obfuscated released. I figure I'd start pull requesting the useful stuff upstream, so here is a start!