summaryrefslogtreecommitdiffstats
path: root/testData/results
diff options
context:
space:
mode:
Diffstat (limited to 'testData/results')
-rw-r--r--testData/results/TestClassLambda.dec2
-rw-r--r--testData/results/TestCodeConstructs.dec17
-rw-r--r--testData/results/TestConstants.dec76
-rw-r--r--testData/results/TestDeprecations.dec32
-rw-r--r--testData/results/TestEnum.dec30
-rw-r--r--testData/results/TestExtendsList.dec13
-rw-r--r--testData/results/TestMethodParameters.dec47
7 files changed, 216 insertions, 1 deletions
diff --git a/testData/results/TestClassLambda.dec b/testData/results/TestClassLambda.dec
index baf2cd7..6124268 100644
--- a/testData/results/TestClassLambda.dec
+++ b/testData/results/TestClassLambda.dec
@@ -65,7 +65,7 @@ public class TestClassLambda {
return null;
}
- public static String function(Supplier var0) {
+ public static String function(Supplier<String> var0) {
return (String)var0.get();
}
diff --git a/testData/results/TestCodeConstructs.dec b/testData/results/TestCodeConstructs.dec
new file mode 100644
index 0000000..da9b30c
--- /dev/null
+++ b/testData/results/TestCodeConstructs.dec
@@ -0,0 +1,17 @@
+package pkg;
+
+
+class TestCodeConstructs {
+
+ private int count = 0;
+
+
+ void expressions() {
+ (new String()).hashCode();
+ }
+
+ String fieldIncrement() {
+ int var1 = this.count++;
+ return "id:" + var1;
+ }
+}
diff --git a/testData/results/TestConstants.dec b/testData/results/TestConstants.dec
new file mode 100644
index 0000000..275c1e4
--- /dev/null
+++ b/testData/results/TestConstants.dec
@@ -0,0 +1,76 @@
+package pkg;
+
+import java.util.Date;
+
+public class TestConstants {
+
+ static final boolean T = true;
+ static final boolean F = false;
+ static final char C0 = '\n';
+ static final char C1 = 'a';
+ static final char C2 = 'Ȁ';
+ static final byte BMin = -128;
+ static final byte BMax = 127;
+ static final short SMin = -32768;
+ static final short SMax = 32767;
+ static final int IMin = -2147483648;
+ static final int IMax = 2147483647;
+ static final long LMin = -9223372036854775808L;
+ static final long LMax = 9223372036854775807L;
+ static final float FNan = 0.0F / 0.0;
+ static final float FNeg = -1.0F / 0.0;
+ static final float FPos = 1.0F / 0.0;
+ static final float FMin = 1.4E-45F;
+ static final float FMax = 3.4028235E38F;
+ static final double DNan = 0.0D / 0.0;
+ static final double DNeg = -1.0D / 0.0;
+ static final double DPos = 1.0D / 0.0;
+ static final double DMin = 4.9E-324D;
+ static final double DMax = 1.7976931348623157E308D;
+
+
+ @TestConstants.A(byte.class)
+ void m1() {
+ }
+
+ @TestConstants.A(char.class)
+ void m2() {
+ }
+
+ @TestConstants.A(double.class)
+ void m3() {
+ }
+
+ @TestConstants.A(float.class)
+ void m4() {
+ }
+
+ @TestConstants.A(int.class)
+ void m5() {
+ }
+
+ @TestConstants.A(long.class)
+ void m6() {
+ }
+
+ @TestConstants.A(short.class)
+ void m7() {
+ }
+
+ @TestConstants.A(boolean.class)
+ void m8() {
+ }
+
+ @TestConstants.A(void.class)
+ void m9() {
+ }
+
+ @TestConstants.A(Date.class)
+ void m10() {
+ }
+
+ @interface A {
+
+ Class<?> value();
+ }
+}
diff --git a/testData/results/TestDeprecations.dec b/testData/results/TestDeprecations.dec
new file mode 100644
index 0000000..9dd5737
--- /dev/null
+++ b/testData/results/TestDeprecations.dec
@@ -0,0 +1,32 @@
+package pkg;
+
+
+public class TestDeprecations {
+
+ /** @deprecated */
+ public int byComment;
+ /** @deprecated */
+ @Deprecated
+ public int byAnno;
+
+
+ /** @deprecated */
+ public void byComment() {
+ }
+
+ /** @deprecated */
+ @Deprecated
+ public void byAnno() {
+ }
+
+ /** @deprecated */
+ @Deprecated
+ public static class ByAnno {
+
+ }
+
+ /** @deprecated */
+ public static class ByComment {
+
+ }
+}
diff --git a/testData/results/TestEnum.dec b/testData/results/TestEnum.dec
new file mode 100644
index 0000000..6aa64c7
--- /dev/null
+++ b/testData/results/TestEnum.dec
@@ -0,0 +1,30 @@
+package pkg;
+
+
+public enum TestEnum {
+
+ E1,
+ E2 {
+ public void m() {
+ }
+ },
+ E3("-"),
+ E4("+") {
+ public void m() {
+ }
+ };
+ private String s;
+
+
+ public void m() {
+ }
+
+ private TestEnum() {
+ this((String)"?");
+ }
+
+ private TestEnum(@Deprecated String var3) {
+ this.s = var3;
+ }
+
+}
diff --git a/testData/results/TestExtendsList.dec b/testData/results/TestExtendsList.dec
new file mode 100644
index 0000000..133281e
--- /dev/null
+++ b/testData/results/TestExtendsList.dec
@@ -0,0 +1,13 @@
+package pkg;
+
+
+public class TestExtendsList {
+
+ static <T extends Comparable<? super T>> T m1(T var0) {
+ return null;
+ }
+
+ static <T extends Object & Comparable<? super T>> T m2(T var0) {
+ return null;
+ }
+}
diff --git a/testData/results/TestMethodParameters.dec b/testData/results/TestMethodParameters.dec
new file mode 100644
index 0000000..ff23e1c
--- /dev/null
+++ b/testData/results/TestMethodParameters.dec
@@ -0,0 +1,47 @@
+package pkg;
+
+
+public class TestMethodParameters {
+
+ TestMethodParameters(@Deprecated int var1) {
+ }
+
+ void m1(@Deprecated int var1) {
+ }
+
+ static void m2(@Deprecated int var0) {
+ }
+
+ void local() {
+ class Local {
+
+ Local(@Deprecated int var2) {
+ }
+
+ void m(@Deprecated int var1) {
+ }
+ }
+
+ }
+
+ static class C2 {
+
+ C2(@Deprecated int var1) {
+ }
+
+ void m1(@Deprecated int var1) {
+ }
+
+ static void m2(@Deprecated int var0) {
+ }
+ }
+
+ class C1 {
+
+ C1(@Deprecated int var2) {
+ }
+
+ void m(@Deprecated int var1) {
+ }
+ }
+}