summaryrefslogtreecommitdiff
path: root/src/test/java/cuchaz/enigma/inputs/inheritanceTree
diff options
context:
space:
mode:
authorGravatar Runemoro2020-06-03 13:39:42 -0400
committerGravatar GitHub2020-06-03 18:39:42 +0100
commit0f47403d0220757fed189b76e2071e25b1025cb8 (patch)
tree879bf72c4476f0a5e0d82da99d7ff2b2276bcaca /src/test/java/cuchaz/enigma/inputs/inheritanceTree
parentFix search dialog hanging for a short time sometimes (#250) (diff)
downloadenigma-fork-0f47403d0220757fed189b76e2071e25b1025cb8.tar.gz
enigma-fork-0f47403d0220757fed189b76e2071e25b1025cb8.tar.xz
enigma-fork-0f47403d0220757fed189b76e2071e25b1025cb8.zip
Split GUI code to separate module (#242)
* Split into modules * Post merge compile fixes Co-authored-by: modmuss50 <modmuss50@gmail.com>
Diffstat (limited to 'src/test/java/cuchaz/enigma/inputs/inheritanceTree')
-rw-r--r--src/test/java/cuchaz/enigma/inputs/inheritanceTree/BaseClass.java32
-rw-r--r--src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassA.java22
-rw-r--r--src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java41
-rw-r--r--src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubsubclassAA.java35
4 files changed, 0 insertions, 130 deletions
diff --git a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/BaseClass.java b/src/test/java/cuchaz/enigma/inputs/inheritanceTree/BaseClass.java
deleted file mode 100644
index b9c4929..0000000
--- a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/BaseClass.java
+++ /dev/null
@@ -1,32 +0,0 @@
1/*******************************************************************************
2 * Copyright (c) 2015 Jeff Martin.
3 * All rights reserved. This program and the accompanying materials
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
6 * http://www.gnu.org/licenses/lgpl.html
7 *
8 * Contributors:
9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/
11
12package cuchaz.enigma.inputs.inheritanceTree;
13
14// a
15public abstract class BaseClass {
16
17 // a
18 private String name;
19
20 // <init>(Ljava/lang/String;)V
21 protected BaseClass(String name) {
22 this.name = name;
23 }
24
25 // a()Ljava/lang/String;
26 public String getName() {
27 return name;
28 }
29
30 // a()V
31 public abstract void doBaseThings();
32}
diff --git a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassA.java b/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassA.java
deleted file mode 100644
index 50e963c..0000000
--- a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassA.java
+++ /dev/null
@@ -1,22 +0,0 @@
1/*******************************************************************************
2 * Copyright (c) 2015 Jeff Martin.
3 * All rights reserved. This program and the accompanying materials
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
6 * http://www.gnu.org/licenses/lgpl.html
7 *
8 * Contributors:
9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/
11
12package cuchaz.enigma.inputs.inheritanceTree;
13
14// b extends a
15public abstract class SubclassA extends BaseClass {
16
17 // <init>(Ljava/lang/String;)V
18 protected SubclassA(String name) {
19 // call to a.<init>(Ljava/lang/String)V
20 super(name);
21 }
22}
diff --git a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java b/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java
deleted file mode 100644
index d0dd664..0000000
--- a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java
+++ /dev/null
@@ -1,41 +0,0 @@
1/*******************************************************************************
2 * Copyright (c) 2015 Jeff Martin.
3 * All rights reserved. This program and the accompanying materials
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
6 * http://www.gnu.org/licenses/lgpl.html
7 *
8 * Contributors:
9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/
11
12package cuchaz.enigma.inputs.inheritanceTree;
13
14// c extends a
15public class SubclassB extends BaseClass {
16
17 // a
18 private int numThings;
19
20 // <init>()V
21 protected SubclassB() {
22 // a.<init>(Ljava/lang/String;)V
23 super("B");
24
25 // access to a
26 numThings = 4;
27 }
28
29 @Override
30 // a()V
31 public void doBaseThings() {
32 // call to a.a()Ljava/lang/String;
33 System.out.println("Base things by B! " + getName());
34 }
35
36 // b()V
37 public void doBThings() {
38 // access to a
39 System.out.println("" + numThings + " B things!");
40 }
41}
diff --git a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubsubclassAA.java b/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubsubclassAA.java
deleted file mode 100644
index c584570..0000000
--- a/src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubsubclassAA.java
+++ /dev/null
@@ -1,35 +0,0 @@
1/*******************************************************************************
2 * Copyright (c) 2015 Jeff Martin.
3 * All rights reserved. This program and the accompanying materials
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
6 * http://www.gnu.org/licenses/lgpl.html
7 *
8 * Contributors:
9 * Jeff Martin - initial API and implementation
10 ******************************************************************************/
11
12package cuchaz.enigma.inputs.inheritanceTree;
13
14// d extends b
15public class SubsubclassAA extends SubclassA {
16
17 protected SubsubclassAA() {
18 // call to b.<init>(Ljava/lang/String;)V
19 super("AA");
20 }
21
22 @Override
23 // a()Ljava/lang/String;
24 public String getName() {
25 // call to b.a()Ljava/lang/String;
26 return "subsub" + super.getName();
27 }
28
29 @Override
30 // a()V
31 public void doBaseThings() {
32 // call to d.a()Ljava/lang/String;
33 System.out.println("Base things by " + getName());
34 }
35}