aboutsummaryrefslogtreecommitdiff
path: root/src/testA/java/a/pkg/A.java
diff options
context:
space:
mode:
authorJonas Herzig <jonas@spark-squared.com>2021-11-12 11:58:05 +0100
committerJonas Herzig <jonas@spark-squared.com>2021-11-12 15:23:25 +0100
commitb30404f156adb6e01bfe4edc50b4de4245ba4509 (patch)
tree7f563929717f12e855034f2eab6c9fb1f95a873e /src/testA/java/a/pkg/A.java
parent5723e6481d2f4e07b6820201e74924643b5687bc (diff)
downloadRemap-b30404f156adb6e01bfe4edc50b4de4245ba4509.tar.gz
Remap-b30404f156adb6e01bfe4edc50b4de4245ba4509.tar.bz2
Remap-b30404f156adb6e01bfe4edc50b4de4245ba4509.zip
Separate B from A test files
So we are closer to a realistic setup and can tell when we accidentally look up a class in the wrong project. Also allows us to have changes in a class but not to the class or its package (i.e. same file).
Diffstat (limited to 'src/testA/java/a/pkg/A.java')
-rw-r--r--src/testA/java/a/pkg/A.java104
1 files changed, 104 insertions, 0 deletions
diff --git a/src/testA/java/a/pkg/A.java b/src/testA/java/a/pkg/A.java
new file mode 100644
index 0000000..f4a30ef
--- /dev/null
+++ b/src/testA/java/a/pkg/A.java
@@ -0,0 +1,104 @@
+package a.pkg;
+
+public class A extends AParent implements AInterface {
+ private A a;
+ private int aField;
+
+ public A() {
+ }
+
+ public A(A arg) {
+ }
+
+ public static A create() { return new A(); }
+
+ public void aMethod() {
+ aInterfaceMethod();
+ }
+
+ public A getA() {
+ return this;
+ }
+
+ public A getSyntheticA() {
+ return this;
+ }
+
+ public void setSyntheticA(A arg) {
+ }
+
+ public boolean isSyntheticBooleanA() {
+ return false;
+ }
+
+ public void setSyntheticBooleanA(boolean arg) {
+ }
+
+ public A getNonSyntheticA() {
+ return this;
+ }
+
+ public void setNonSyntheticA(A arg) {
+ }
+
+ public boolean isNonSyntheticBooleanA() {
+ return false;
+ }
+
+ public void setNonSyntheticBooleanA(boolean arg) {
+ }
+
+ public A getterA() {
+ return this;
+ }
+
+ public void setterA(A arg) {
+ }
+
+ public boolean getterBooleanA() {
+ return false;
+ }
+
+ public void setterBooleanA(boolean arg) {
+ }
+
+ public int conflictingField;
+ public int getConflictingFieldWithoutConflict() {
+ return conflictingField;
+ }
+
+ public void aOverloaded() {
+ }
+
+ public void aOverloaded(int arg) {
+ }
+
+ public void aOverloaded(boolean arg) {
+ }
+
+ public void commonOverloaded(Object arg) {
+ }
+
+ public void commonOverloaded(A arg) {
+ }
+
+ public void unmappedOverloaded(Object arg) {
+ }
+
+ public void unmappedOverloaded(A arg) {
+ }
+
+ @Override
+ public void aInterfaceMethod() {
+ new A() {};
+ }
+
+ public class Inner {
+ private int aField;
+ }
+
+ public class InnerA {
+ }
+
+ public class GenericA<T> {}
+}