superclass.java
来自「Checkstyle 可寻找:·不能使用的或者多余的输入 ·空格更好的地方不使用」· Java 代码 · 共 47 行
JAVA
47 行
package com.puppycrawl.tools.checkstyle.bcel.checks;
public class SuperClass
{
// Name reused in subclass
protected int reusedName;
// Subclass uses private name, still conflict
protected int subClassPrivate;
// This is a private field, subclass does not shadow
private int superClassPrivate;
// Test for different data types
protected String differentType;
// Hidden
public static int staticMethod() {
return 0;
}
// Not hidden
public int nonStaticMethod() {
return 0;
}
// Hidden
public static int staticMethodSameParamName(int i) {
return 0;
}
// Hidden
public static int staticMethodSameParamType(int i) {
return 0;
}
// Not hidden
public static int staticMethodDifferentParamNum(int i, int j) {
return 0;
}
// Not hidden
public static int staticMethodDifferentParamType(int i) {
return 0;
}
// Not hidden
public static int staticMethodDifferentObjectType(Integer i) {
return 0;
}
// Not hidden (?)
public static int staticMethodSuperParamType(Object i) {
return 0;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?