[Clirr-devel] CVS: clirr/core/src/testinput/testlib-v2/testlib AbstractImpl.java,NONE,1.1 Applicatio
Status: Alpha
Brought to you by:
lkuehne
Update of /cvsroot/clirr/clirr/core/src/testinput/testlib-v2/testlib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10031/testinput/testlib-v2/testlib Added Files: AbstractImpl.java ApplicationException.java BaseInterface.java BaseMembers.java ChangingHierarchy.java ClassBecomesInterface.java ComplexMethodMoveBase.java ComplexMethodMoveSub.java InterfaceBecomesClass.java MembersChange.java MethodsChange.java Log Message: added test input files --- NEW FILE --- package testlib; public abstract class AbstractImpl implements BaseInterface { // public abstract void method(); not available here directly } --- NEW FILE --- package testlib; public class ApplicationException extends java.util.NoSuchElementException { } --- NEW FILE --- package testlib; public interface BaseInterface { void method(); } --- NEW FILE --- package testlib; public class BaseMembers { public static int base1 = 0; public int base2 = 0; } --- NEW FILE --- package testlib; public class ChangingHierarchy extends java.awt.event.WindowAdapter { } --- NEW FILE --- package testlib; public interface ClassBecomesInterface { } --- NEW FILE --- package testlib; public class ComplexMethodMoveBase { // moved from ComplexMethodMoveSub in v1 public void moveToSuper() {} } --- NEW FILE --- package testlib; public class ComplexMethodMoveSub extends ComplexMethodMoveBase { } --- NEW FILE --- package testlib; public class InterfaceBecomesClass { } --- NEW FILE --- package testlib; public class MembersChange extends BaseMembers { public static int stat1 = 0; // same public static final int stat2 = 0; // added final public int stat3 = 0; // removed static protected static int stat4 = 0; // public -> protected private static int stat5 = 0; // public -> private static int stat6 = 0; // public -> package // removed stat7 public static int stat8 = 0; // new member public static final int fin1 = 0; // same protected static final int fin2 = 0; // public -> protected public final int fin3 = 0; // removed static public static int fin4 = 0; // removed final public static final int fin5 = 1; // changed compile time constant public static final boolean fin6 = Boolean.FALSE.booleanValue(); // removed value of compile time constant public int pub1 = 0; public static int pub2 = 0; // added static public final int pub3 = 0; // added final public int pub4 = 0; protected int prot1 = 0; protected int prot2 = 0; protected int prot3 = 0; protected int prot4 = 0; public String obj1 = new String(); // member type changed Object -> String public String obj2 = new String(); // member type changed Boolean -> String private int priv1 = 0; // same public int priv2 = 0; // private -> public } --- NEW FILE --- package testlib; import java.io.IOException; public class MethodsChange { private int priv; public MethodsChange() { priv = 2; } protected MethodsChange(int initialpriv, boolean newArg) { priv = initialpriv; } protected MethodsChange(Integer initialpriv) { priv = initialpriv.intValue(); } public int getPriv() { return priv; } private int getPriv2() { return priv; } public Integer getPrivAsNumber() { return new Integer(priv); } public Number getPrivAsInteger() { return new Integer(priv); } public Long getPrivSquare() { return new Long(priv * priv); } public void printPriv(String prefix) { System.out.println(prefix + priv); } public void weakenParamType(Object s) { } public void strengthenParamType(String s) { } public void changeParamType(Integer x) { } public void throwIOException() throws Exception { throw new java.io.IOException(); } public void throwException() throws IOException { throw new java.io.IOException(); } public void throwException2() { } public void throwRuntimeException() { throw new RuntimeException(); } public void throwNoRuntimeException() throws RuntimeException { throw new RuntimeException(); } public void throwNoException() throws Exception { throw new Exception(); } /** * @deprecated this is a bad method. */ public void becomesDeprecated() { } /** * This method was previously deprecated. */ public void becomesUndeprecated() { } } |