Java – @ override gives errors in eclipse?
•
Java
When I import a project from the workspace in eclipse, it will make an error in the @ override comment If the project has any method with comments, it will display as an error and work normally when I delete it, but what should I do when I have a main project with a lot of comments?
Solution
You receive an error because you are using java 1.5, which does not support @ override annotation to achieve override Enter eclipse settings and set the language level to 1.6
Edit – change the language level go to project > Properties > java compiler and set the language level there You may need to click to enable project specific settings
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码