Eclipse ignoring incorrect @Override annotations

前端 未结 3 1427
Happy的楠姐
Happy的楠姐 2021-01-02 17:45

For some reason one of my eclipse installations is ignoring incorrectly set @Overrideannotations. For example, if I put @Override on a method that

3条回答
  •  轮回少年
    2021-01-02 18:18

    The definition of @Override changed slightly in Java 6 (and unfortunatly without proper documentation) wherein an @Override annotation on a method that implements an interface method is valid. In Java 5 that was considered an error.

提交回复
热议问题