Fixed sprawling warnings issued by IntelliJ

By changing JDK to version 1.7, many 'supposed' warnings were averted.