@Override is not allowed when implementing interface method

前端 未结 7 1399
难免孤独
难免孤独 2021-01-30 00:49

I have the problem mentioned in the title. You could say that this thread duplicates another one: How do I turn off error validation for annotations in IntelliJ IDEA?

Bu

7条回答
  •  不思量自难忘°
    2021-01-30 01:15

    In JIdea 2020.1.2 and above,

    1. Go to Project Structure [ Ctrl+Alt+Shift+S ]
    2. Select Modules sub section
    3. Select each module
    4. Under sources-section, check Language Level
    5. Change the Language Level as required

    NOTE:

    If you get below error after this change,

    Error:java: Compilation failed: internal java compiler error
    

    You have to change the target bytecode version as well.

    1. Go to Settings [ Ctrl+Alt+S ]
    2. Select Java Compiler
    3. Select module in the table
    4. Change the byte-code version to map what you selected in the previous step for language-level

提交回复
热议问题