By default, your "Project bytecode version isn't set in maven project.
It thinks that your current version is 5, so just go to "Project Settings>Build, Execution...>compiler>java compiler" and then change your bytecode version to your current java version.
By default, your "Project bytecode version isn't set in maven project.
It thinks that your current version is 5, so just go to "Project Settings>Build, Execution...>compiler>java compiler" and then change your bytecode version to your current java version.
Have a good day :)
This is what fixed mine. Thank you very much, sir.
Thank you so much, it totally worked for me.