changedmethods.java

来自「JDiff is a Javadoc doclet which generate」· Java 代码 · 共 76 行

JAVA
76
字号
package ChangedPackage;/**  * NEW: The changes in this class are to do with changes in methods, * when mutiple methods have the same name. */public class ChangedMethods {    /** This constructor should remain unchanged. */    public ChangedMethods() {    }    /** This method should remain unchanged. */    public void UnchangedMethod() {    }    // Test of changing one method in multiple methods    /** This method should have been unchanged. */    public void MethodA() {    }    /**      * NEW: This method should have been changed with the addition of a long      * parameter.      */    public void MethodA(char a, long newParam) {    }    /** This method should have been unchanged. */    public void MethodA(char a, int b) {    }    // Test of changing two methods in multiple methods    /** This method should have been unchanged. */    public void MethodB() {    }    /**      * NEW: This method should have been changed with the addition of a long      * parameter.      */    public void MethodB(char a, long newParam) {    }    /**      * NEW: This method should have been changed with the addition of a String     * parameter.      */    public void MethodB(char a, int b, String newStringParam) {    }    // Test of changing all methods in multiple methods    /**      * NEW: This method should have been changed with the addition of a byte      * parameter.      */    public void MethodC(byte newByteParam) {    }    /**      * NEW: This method should have been changed with the addition of a long      * parameter.      */    public void MethodC(char a, long newParam) {    }    /**      * NEW: This method should have been changed with the addition of a String     * parameter.      */    public void MethodC(char a, int b, String newStringParam) {    }    /** NEW: This method should have had a long parameter removed. */    public String MethodWithRemovedParam(int a, /* long b,*/ int c) {        return "foo";    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?