@Override is not allowed when implementing interface method

前端 未结 7 1401
难免孤独
难免孤独 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:26

    A simpler solution - inline

    1. Put the caret on the @Override word and move the caret on the left side until the red bulb icon will appear. Then click on it.

    2. Click on Set language level to 6 - Override in interfaces


    The method above is an alternative to the following approach:

    1. Go to File > Project Structure... or press Ctrl+Alt+Shift+S

    2. Go to Project Settings > Modules > Sources > Language level and choose any level that is 6 or greater than 6.

    0 讨论(0)
提交回复
热议问题