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 确实可以防止子类定义具有相同签名的静态方法。
IDEA 的这个提示是真的烦
报告方法声明为 final 和 static。当静态方法在子类中被重写时,仍然可以通过超类访问它,因此不需要进行最终声明。声明静态方法 final 确实可以防止子类定义具有相同签名的静态方法。