Error "Must override a superclass method" after importing project into Eclipse
Hello everyone! I'm a beginner Java developer, I recently started learning and encountered a very strange problem. I'm working on a small project in Eclipse, everything compiled and worked perfectly. Then I had to reinstall Eclipse, and I imported my project again (copied the source folder and used Import -> Existing Projects into Workspace).
After that, in several classes that inherit interfaces or abstract classes, Eclipse started underlining methods with the @Override annotation in red and giving the error: "The method ... must override a superclass method". Here's an example of code that used to work but now gives an error:
```java
import java.util.ArrayList;
import java.util.List;
interface Animal {
void makeSound();
}
class Dog implements Animal {