From 0f47403d0220757fed189b76e2071e25b1025cb8 Mon Sep 17 00:00:00 2001 From: Runemoro Date: Wed, 3 Jun 2020 13:39:42 -0400 Subject: Split GUI code to separate module (#242) * Split into modules * Post merge compile fixes Co-authored-by: modmuss50 --- .../enigma/inputs/inheritanceTree/BaseClass.java | 32 ----------------- .../enigma/inputs/inheritanceTree/SubclassA.java | 22 ------------ .../enigma/inputs/inheritanceTree/SubclassB.java | 41 ---------------------- .../inputs/inheritanceTree/SubsubclassAA.java | 35 ------------------ 4 files changed, 130 deletions(-) delete mode 100644 src/test/java/cuchaz/enigma/inputs/inheritanceTree/BaseClass.java delete mode 100644 src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassA.java delete mode 100644 src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubclassB.java delete mode 100644 src/test/java/cuchaz/enigma/inputs/inheritanceTree/SubsubclassAA.java (limited to 'src/test/java/cuchaz/enigma/inputs/inheritanceTree') 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 @@ -/******************************************************************************* - * Copyright (c) 2015 Jeff Martin. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the GNU Lesser General Public - * License v3.0 which accompanies this distribution, and is available at - * http://www.gnu.org/licenses/lgpl.html - * - * Contributors: - * Jeff Martin - initial API and implementation - ******************************************************************************/ - -package cuchaz.enigma.inputs.inheritanceTree; - -// a -public abstract class BaseClass { - - // a - private String name; - - // (Ljava/lang/String;)V - protected BaseClass(String name) { - this.name = name; - } - - // a()Ljava/lang/String; - public String getName() { - return name; - } - - // a()V - public abstract void doBaseThings(); -} 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 @@ -/******************************************************************************* - * Copyright (c) 2015 Jeff Martin. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the GNU Lesser General Public - * License v3.0 which accompanies this distribution, and is available at - * http://www.gnu.org/licenses/lgpl.html - * - * Contributors: - * Jeff Martin - initial API and implementation - ******************************************************************************/ - -package cuchaz.enigma.inputs.inheritanceTree; - -// b extends a -public abstract class SubclassA extends BaseClass { - - // (Ljava/lang/String;)V - protected SubclassA(String name) { - // call to a.(Ljava/lang/String)V - super(name); - } -} 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 @@ -/******************************************************************************* - * Copyright (c) 2015 Jeff Martin. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the GNU Lesser General Public - * License v3.0 which accompanies this distribution, and is available at - * http://www.gnu.org/licenses/lgpl.html - * - * Contributors: - * Jeff Martin - initial API and implementation - ******************************************************************************/ - -package cuchaz.enigma.inputs.inheritanceTree; - -// c extends a -public class SubclassB extends BaseClass { - - // a - private int numThings; - - // ()V - protected SubclassB() { - // a.(Ljava/lang/String;)V - super("B"); - - // access to a - numThings = 4; - } - - @Override - // a()V - public void doBaseThings() { - // call to a.a()Ljava/lang/String; - System.out.println("Base things by B! " + getName()); - } - - // b()V - public void doBThings() { - // access to a - System.out.println("" + numThings + " B things!"); - } -} 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 @@ -/******************************************************************************* - * Copyright (c) 2015 Jeff Martin. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the GNU Lesser General Public - * License v3.0 which accompanies this distribution, and is available at - * http://www.gnu.org/licenses/lgpl.html - * - * Contributors: - * Jeff Martin - initial API and implementation - ******************************************************************************/ - -package cuchaz.enigma.inputs.inheritanceTree; - -// d extends b -public class SubsubclassAA extends SubclassA { - - protected SubsubclassAA() { - // call to b.(Ljava/lang/String;)V - super("AA"); - } - - @Override - // a()Ljava/lang/String; - public String getName() { - // call to b.a()Ljava/lang/String; - return "subsub" + super.getName(); - } - - @Override - // a()V - public void doBaseThings() { - // call to d.a()Ljava/lang/String; - System.out.println("Base things by " + getName()); - } -} -- cgit v1.2.3