summaryrefslogtreecommitdiff
path: root/src/test/java/cuchaz/enigma/inputs/translation
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/cuchaz/enigma/inputs/translation')
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/A_Basic.java13
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/B_BaseClass.java9
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/C_SubClass.java9
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/D_AnonymousTesting.java5
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/E_Bridges.java4
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/F_ObjectMethods.java7
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/G_OuterClass.java18
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/H_NamelessClass.java20
-rw-r--r--src/test/java/cuchaz/enigma/inputs/translation/I_Generics.java22
9 files changed, 57 insertions, 50 deletions
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/A_Basic.java b/src/test/java/cuchaz/enigma/inputs/translation/A_Basic.java
index 26acac8..26f3718 100644
--- a/src/test/java/cuchaz/enigma/inputs/translation/A_Basic.java
+++ b/src/test/java/cuchaz/enigma/inputs/translation/A_Basic.java
@@ -4,28 +4,29 @@
4 * are made available under the terms of the GNU Lesser General Public 4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at 5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html 6 * http://www.gnu.org/licenses/lgpl.html
7 * 7 *
8 * Contributors: 8 * Contributors:
9 * Jeff Martin - initial API and implementation 9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/ 10 ******************************************************************************/
11
11package cuchaz.enigma.inputs.translation; 12package cuchaz.enigma.inputs.translation;
12 13
13public class A_Basic { 14public class A_Basic {
14 15
15 public int one; 16 public int one;
16 public float two; 17 public float two;
17 public String three; 18 public String three;
18 19
19 public void m1() { 20 public void m1() {
20 } 21 }
21 22
22 public int m2() { 23 public int m2() {
23 return 42; 24 return 42;
24 } 25 }
25 26
26 public void m3(int a1) { 27 public void m3(int a1) {
27 } 28 }
28 29
29 public int m4(int a1) { 30 public int m4(int a1) {
30 return 5; // chosen by fair die roll, guaranteed to be random 31 return 5; // chosen by fair die roll, guaranteed to be random
31 } 32 }
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/B_BaseClass.java b/src/test/java/cuchaz/enigma/inputs/translation/B_BaseClass.java
index 035e329..fd7f6e7 100644
--- a/src/test/java/cuchaz/enigma/inputs/translation/B_BaseClass.java
+++ b/src/test/java/cuchaz/enigma/inputs/translation/B_BaseClass.java
@@ -4,21 +4,22 @@
4 * are made available under the terms of the GNU Lesser General Public 4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at 5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html 6 * http://www.gnu.org/licenses/lgpl.html
7 * 7 *
8 * Contributors: 8 * Contributors:
9 * Jeff Martin - initial API and implementation 9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/ 10 ******************************************************************************/
11
11package cuchaz.enigma.inputs.translation; 12package cuchaz.enigma.inputs.translation;
12 13
13public class B_BaseClass { 14public class B_BaseClass {
14 15
15 public int f1; 16 public int f1;
16 public char f2; 17 public char f2;
17 18
18 public int m1() { 19 public int m1() {
19 return 5; 20 return 5;
20 } 21 }
21 22
22 public int m2() { 23 public int m2() {
23 return 42; 24 return 42;
24 } 25 }
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/C_SubClass.java b/src/test/java/cuchaz/enigma/inputs/translation/C_SubClass.java
index 6026a8d..9d74e44 100644
--- a/src/test/java/cuchaz/enigma/inputs/translation/C_SubClass.java
+++ b/src/test/java/cuchaz/enigma/inputs/translation/C_SubClass.java
@@ -4,23 +4,24 @@
4 * are made available under the terms of the GNU Lesser General Public 4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at 5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html 6 * http://www.gnu.org/licenses/lgpl.html
7 * 7 *
8 * Contributors: 8 * Contributors:
9 * Jeff Martin - initial API and implementation 9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/ 10 ******************************************************************************/
11
11package cuchaz.enigma.inputs.translation; 12package cuchaz.enigma.inputs.translation;
12 13
13public class C_SubClass extends B_BaseClass { 14public class C_SubClass extends B_BaseClass {
14 15
15 public char f2; // shadows B_BaseClass.f2 16 public char f2; // shadows B_BaseClass.f2
16 public int f3; 17 public int f3;
17 public int f4; 18 public int f4;
18 19
19 @Override 20 @Override
20 public int m1() { 21 public int m1() {
21 return 32; 22 return 32;
22 } 23 }
23 24
24 public int m3() { 25 public int m3() {
25 return 7; 26 return 7;
26 } 27 }
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/D_AnonymousTesting.java b/src/test/java/cuchaz/enigma/inputs/translation/D_AnonymousTesting.java
index a1827f9..99c83bb 100644
--- a/src/test/java/cuchaz/enigma/inputs/translation/D_AnonymousTesting.java
+++ b/src/test/java/cuchaz/enigma/inputs/translation/D_AnonymousTesting.java
@@ -4,17 +4,18 @@
4 * are made available under the terms of the GNU Lesser General Public 4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at 5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html 6 * http://www.gnu.org/licenses/lgpl.html
7 * 7 *
8 * Contributors: 8 * Contributors:
9 * Jeff Martin - initial API and implementation 9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/ 10 ******************************************************************************/
11
11package cuchaz.enigma.inputs.translation; 12package cuchaz.enigma.inputs.translation;
12 13
13import java.util.ArrayList; 14import java.util.ArrayList;
14import java.util.List; 15import java.util.List;
15 16
16public class D_AnonymousTesting { 17public class D_AnonymousTesting {
17 18
18 public List<Object> getObjs() { 19 public List<Object> getObjs() {
19 List<Object> objs = new ArrayList<Object>(); 20 List<Object> objs = new ArrayList<Object>();
20 objs.add(new Object() { 21 objs.add(new Object() {
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/E_Bridges.java b/src/test/java/cuchaz/enigma/inputs/translation/E_Bridges.java
index 769eb70..0b8cf2a 100644
--- a/src/test/java/cuchaz/enigma/inputs/translation/E_Bridges.java
+++ b/src/test/java/cuchaz/enigma/inputs/translation/E_Bridges.java
@@ -4,15 +4,15 @@
4 * are made available under the terms of the GNU Lesser General Public 4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at 5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html 6 * http://www.gnu.org/licenses/lgpl.html
7 * 7 *
8 * Contributors: 8 * Contributors:
9 * Jeff Martin - initial API and implementation 9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/ 10 ******************************************************************************/
11
11package cuchaz.enigma.inputs.translation; 12package cuchaz.enigma.inputs.translation;
12 13
13import java.util.Iterator; 14import java.util.Iterator;
14 15
15
16public class E_Bridges implements Iterator<Object> { 16public class E_Bridges implements Iterator<Object> {
17 17
18 @Override 18 @Override
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/F_ObjectMethods.java b/src/test/java/cuchaz/enigma/inputs/translation/F_ObjectMethods.java
index 845d62b..8a92792 100644
--- a/src/test/java/cuchaz/enigma/inputs/translation/F_ObjectMethods.java
+++ b/src/test/java/cuchaz/enigma/inputs/translation/F_ObjectMethods.java
@@ -4,17 +4,18 @@
4 * are made available under the terms of the GNU Lesser General Public 4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at 5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html 6 * http://www.gnu.org/licenses/lgpl.html
7 * 7 *
8 * Contributors: 8 * Contributors:
9 * Jeff Martin - initial API and implementation 9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/ 10 ******************************************************************************/
11
11package cuchaz.enigma.inputs.translation; 12package cuchaz.enigma.inputs.translation;
12 13
13@SuppressWarnings("FinalizeCalledExplicitly") 14@SuppressWarnings("FinalizeCalledExplicitly")
14public class F_ObjectMethods { 15public class F_ObjectMethods {
15 16
16 public void callEmAll() 17 public void callEmAll()
17 throws Throwable { 18 throws Throwable {
18 clone(); 19 clone();
19 equals(this); 20 equals(this);
20 finalize(); 21 finalize();
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/G_OuterClass.java b/src/test/java/cuchaz/enigma/inputs/translation/G_OuterClass.java
index a2e0daf..a1e6a85 100644
--- a/src/test/java/cuchaz/enigma/inputs/translation/G_OuterClass.java
+++ b/src/test/java/cuchaz/enigma/inputs/translation/G_OuterClass.java
@@ -4,30 +4,30 @@
4 * are made available under the terms of the GNU Lesser General Public 4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at 5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html 6 * http://www.gnu.org/licenses/lgpl.html
7 * 7 *
8 * Contributors: 8 * Contributors:
9 * Jeff Martin - initial API and implementation 9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/ 10 ******************************************************************************/
11package cuchaz.enigma.inputs.translation;
12 11
12package cuchaz.enigma.inputs.translation;
13 13
14public class G_OuterClass { 14public class G_OuterClass {
15 15
16 public class A_InnerClass { 16 public class A_InnerClass {
17 17
18 public int f1; 18 public int f1;
19 public String f2; 19 public String f2;
20 20
21 public void m1() {} 21 public void m1() {}
22 22
23 public class A_InnerInnerClass { 23 public class A_InnerInnerClass {
24 24
25 public int f3; 25 public int f3;
26 26
27 public void m2() {} 27 public void m2() {}
28 } 28 }
29 } 29 }
30 30
31 public class B_NamelessClass { 31 public class B_NamelessClass {
32 public class A_NamedInnerClass { 32 public class A_NamedInnerClass {
33 public int f4; 33 public int f4;
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/H_NamelessClass.java b/src/test/java/cuchaz/enigma/inputs/translation/H_NamelessClass.java
index 1b718a5..013c55a 100644
--- a/src/test/java/cuchaz/enigma/inputs/translation/H_NamelessClass.java
+++ b/src/test/java/cuchaz/enigma/inputs/translation/H_NamelessClass.java
@@ -4,34 +4,36 @@
4 * are made available under the terms of the GNU Lesser General Public 4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at 5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html 6 * http://www.gnu.org/licenses/lgpl.html
7 * 7 *
8 * Contributors: 8 * Contributors:
9 * Jeff Martin - initial API and implementation 9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/ 10 ******************************************************************************/
11package cuchaz.enigma.inputs.translation;
12 11
12package cuchaz.enigma.inputs.translation;
13 13
14public class H_NamelessClass { 14public class H_NamelessClass {
15 15
16 public class A_InnerClass { 16 public class A_InnerClass {
17 17
18 public int f1; 18 public int f1;
19 public String f2; 19 public String f2;
20 20
21 public void m1() {} 21 public void m1() {}
22 22
23 public class A_InnerInnerClass { 23 public class A_InnerInnerClass {
24 24
25 public int f3; 25 public int f3;
26 26
27 public void m2() {} 27 public void m2() {}
28 } 28 }
29 } 29 }
30 30
31 public class B_NamelessClass { 31 public class B_NamelessClass {
32 public class A_NamedInnerClass { 32 public class A_NamedInnerClass {
33 public int f4; 33 public int f4;
34
34 public class A_AnotherInnerClass {} 35 public class A_AnotherInnerClass {}
36
35 public class B_YetAnotherInnerClass {} 37 public class B_YetAnotherInnerClass {}
36 } 38 }
37 } 39 }
diff --git a/src/test/java/cuchaz/enigma/inputs/translation/I_Generics.java b/src/test/java/cuchaz/enigma/inputs/translation/I_Generics.java
index 3490f9d..fd2ebdd 100644
--- a/src/test/java/cuchaz/enigma/inputs/translation/I_Generics.java
+++ b/src/test/java/cuchaz/enigma/inputs/translation/I_Generics.java
@@ -4,32 +4,32 @@
4 * are made available under the terms of the GNU Lesser General Public 4 * are made available under the terms of the GNU Lesser General Public
5 * License v3.0 which accompanies this distribution, and is available at 5 * License v3.0 which accompanies this distribution, and is available at
6 * http://www.gnu.org/licenses/lgpl.html 6 * http://www.gnu.org/licenses/lgpl.html
7 * 7 *
8 * Contributors: 8 * Contributors:
9 * Jeff Martin - initial API and implementation 9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/ 10 ******************************************************************************/
11
11package cuchaz.enigma.inputs.translation; 12package cuchaz.enigma.inputs.translation;
12 13
13import java.util.List; 14import java.util.List;
14import java.util.Map; 15import java.util.Map;
15 16
16
17public class I_Generics { 17public class I_Generics {
18 18
19 public class A_Type {
20 }
21
22 public List<Integer> f1; 19 public List<Integer> f1;
23 public List<A_Type> f2; 20 public List<A_Type> f2;
24 public Map<A_Type,A_Type> f3; 21 public Map<A_Type, A_Type> f3;
25 22 public B_Generic<Integer> f5;
23 public B_Generic<A_Type> f6;
24
25 public class A_Type {
26 }
27
26 public class B_Generic<T> { 28 public class B_Generic<T> {
27 public T f4; 29 public T f4;
30
28 public T m1() { 31 public T m1() {
29 return null; 32 return null;
30 } 33 }
31 } 34 }
32
33 public B_Generic<Integer> f5;
34 public B_Generic<A_Type> f6;
35} 35}