renamed all modules

This commit is contained in:
Andy Clement
2014-01-15 11:36:24 -08:00
parent 342420b2ed
commit ceef61cf98
1055 changed files with 301 additions and 259 deletions

View File

@@ -0,0 +1,8 @@
package tgt;
public class SimpleClass {
public static int toInt(String s) {
return Integer.parseInt(s);
}
}

View File

@@ -0,0 +1,11 @@
package tgt;
public class SimpleClass002 {
public static int toInt(String s) {
return Integer.parseInt(s);
}
public static String fromInt(int i) {
return Integer.toString(i);
}
}

View File

@@ -0,0 +1,15 @@
package tgt;
public class SimpleClass003 {
public static int toInt(String s) {
return Integer.parseInt(s);
}
public static String fromInt(int i) {
return Integer.toString(i);
}
public static int getMe42() {
return 42;
}
}

View File

@@ -0,0 +1,15 @@
package tgt;
public class SimpleClass004 {
public static int toInt(String s) {
return 256;
}
public static String fromInt(int i) {
return Integer.toString(i);
}
public static int getMe42() {
return 42;
}
}

View File

@@ -0,0 +1,4 @@
package tgt;
public class SimpleClass005 {
}

View File

@@ -0,0 +1,7 @@
package tgt;
public class SimpleClass006 {
public int toInt(String s) {
return Integer.parseInt(s);
}
}

View File

@@ -0,0 +1,9 @@
package tgt;
public class SimpleClass007 {
@SuppressWarnings("unused")
private static int toInt(String s) {
return 222;
}
}

View File

@@ -0,0 +1,7 @@
package tgt;
public interface SimpleI {
int toInt(String s);
int changingReturnType();
}

View File

@@ -0,0 +1,7 @@
package tgt;
public interface SimpleI002 {
int toInt(String s);
String fromInt();
}

View File

@@ -0,0 +1,7 @@
package tgt;
public interface SimpleI003 {
int toInt(String s);
String stringify(double d, int i, long l, boolean b);
}

View File

@@ -0,0 +1,6 @@
package tgt;
public interface SimpleI004 {
// method removed
// int toInt(String s);
}

View File

@@ -0,0 +1,7 @@
package tgt;
public interface SimpleI005 {
int toInt(int s);
String changingReturnType();
}

View File

@@ -0,0 +1,15 @@
package tgt;
public class SimpleIClass implements SimpleI {
public int toInt(String s) {
return Integer.parseInt(s);
}
public String fromInt() {
return Integer.toString(42);
}
public int changingReturnType() {
return 111;
}
}

View File

@@ -0,0 +1,16 @@
package tgt;
public class SimpleIClass003 implements SimpleI003 {
public int toInt(String s) {
return Integer.parseInt(s);
}
public String fromInt() {
return Integer.toString(42);
}
public String stringify(double d, int i, long l, boolean b) {
return "" + d + i + l + b;
}
}

View File

@@ -0,0 +1,19 @@
package tgt;
public class SimpleIClass005 implements SimpleI005 {
public int toInt(String s) {
return Integer.parseInt(s);
}
public String fromInt() {
return Integer.toString(42);
}
public int toInt(int i) {
return i * 2;
}
public String changingReturnType() {
return "abc";
}
}

View File

@@ -0,0 +1,12 @@
package tgt;
public class SimpleIClassTwo implements SimpleITwo {
public int toInt(String s) {
return Integer.parseInt(s);
}
public String fromLong(long l) {
return Long.toString(l);
}
}

View File

@@ -0,0 +1,5 @@
package tgt;
public interface SimpleITwo {
int toInt(String s);
}

View File

@@ -0,0 +1,7 @@
package tgt;
public interface SimpleITwo002 {
int toInt(String s);
String fromLong(long l);
}

View File

@@ -0,0 +1,7 @@
package tgt;
public class StaticCaller {
public int run() {
return SimpleClass.toInt("123");
}
}

View File

@@ -0,0 +1,7 @@
package tgt;
public class StaticCaller002 {
public String run2() {
return SimpleClass002.fromInt(456);
}
}

View File

@@ -0,0 +1,7 @@
package tgt;
public class StaticCaller003 {
public String run3() {
return Integer.toString(SimpleClass003.getMe42());
}
}

View File

@@ -0,0 +1,13 @@
package tgt;
public class StaticICaller {
public int run() {
SimpleI si = new SimpleIClass();
return si.toInt("123");
}
public Object run2() {
SimpleI si = new SimpleIClass();
return si.changingReturnType();
}
}

View File

@@ -0,0 +1,8 @@
package tgt;
public class StaticICaller002 {
public String run() {
SimpleI002 si = (SimpleI002) new SimpleIClass();
return si.fromInt();
}
}

View File

@@ -0,0 +1,8 @@
package tgt;
public class StaticICaller003 {
public String run() {
SimpleI003 si = new SimpleIClass003();
return si.stringify(2.0d, 12, 32768L, false);
}
}

View File

@@ -0,0 +1,13 @@
package tgt;
public class StaticICaller005 {
public int run() {
SimpleI005 si = new SimpleIClass005();
return si.toInt(36);
}
public Object run2() {
SimpleI005 si = new SimpleIClass005();
return si.changingReturnType();
}
}

View File

@@ -0,0 +1,8 @@
package tgt;
public class StaticICallerTwo {
public int run() {
SimpleITwo si = new SimpleIClassTwo();
return si.toInt("123");
}
}

View File

@@ -0,0 +1,8 @@
package tgt;
public class StaticICallerTwo002 {
public String run() {
SimpleITwo002 si = (SimpleITwo002) new SimpleIClassTwo();
return si.fromLong(27);
}
}