replaced usages of deprecated method overload
ported class to java due to java8-related problems
ported class to java
upgraded asm 5.0.2 -> 5.0.3
Revert "replaced usages of deprecated method overload"

This reverts commit 8b5654541341d248b1fb031322dae8e4cfcaa858.
fixes after porting class to java
fixed GRADLE-3094: Scala plugin doesn't work when Gradle is run with Java 8

- Note that according to Scala release notes, latest Scala (2.11.1) doesn't really support Java 8 yet. Even when switching our integration tests to Scala 2.11.1, Scala compilation would fail with `VerifyError`s when running with Java 8.