Override is deprecated.
Answered
Hello, I don't know what settings I changed on IntelliJ but now it says that @override is deprecated on Java.
I didn't use to say that but now it does.
'java.lang.Override' is deprecated
Is there a way to fix it? Or is it really deprecated?
Please sign in to leave a comment.
"<symbol> is deprecated" notification is shown for symbols which are annotated as @Deprecated, see https://stackoverflow.com/q/19947327/2000323.
What is the declaration of this symbol which is marked as deprecated?
Try also File | Invalidate Caches/Restart.. | Invalidate and Restart.
The anotation @Override itself is the deprecated one, no matter where I put it, it becomes deprecated.
Tried that but it did not work either.
Show the full declaration of this Override interface.
Make sure you have Setting(Preferences) | Build, Execution, Deployment | Compiler | Java Compiler | Javac Options | Report use of deprecated features option enabled and rebuild the project - do you see any java compiler warnings?
I do have that enabled.
I think I found the problem, I opened the same project on ultimate version instead and I found that there is an option to mark it as deprecated.
So I guess I clicked on it on community version without noticing? Do you know how to revert that?
Thanks for the information. You can de-annotate it from the Override interface declaration: