T

iTanken undefined
关注
5212 号成员,2016-11-20 14:48:09 加入
5.9k
个人主页 浏览
878
帖子 + 回帖 + 评论
飘风不终朝,骤雨不终日。
  • iTanken 成都
    链接

    IDEA 的这个提示是真的烦

    Reports methods declared final and static. When a static method is overridden in a subclass it can still be accessed via the super class, making a final declaration not very necessary. Declaring a static method final does prevent subclasses from defining a static method with the same signature.

    报告方法声明为 final 和 static。当静态方法在子类中被重写时,仍然可以通过超类访问它,因此不需要进行最终声明。声明静态方法 final 确实可以防止子类定义具有相同签名的静态方法。

  • 更多