Goto Settings->Build,Execution,Deployment->Compiler->Java Compiler->Override compiler parameters per-module. Either edit it to the correct values or delete the values.
Also check if you have compilerArgs in your pom and try deleting that