summaryrefslogtreecommitdiffstats
path: root/testData
diff options
context:
space:
mode:
authorRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-09-04 14:30:28 +0400
committerRoman Shevchenko <roman.shevchenko@jetbrains.com>2014-09-04 14:33:34 +0400
commit1cea85e49ae7659e7124383b619730ba6053bb46 (patch)
tree9893c2ed765e9f1dfa887b7123dd034569e12549 /testData
parentf4f9e8be28142ebb4b85026eef6505055a31b68a (diff)
downloadfernflower-1cea85e49ae7659e7124383b619730ba6053bb46.tar
fernflower-1cea85e49ae7659e7124383b619730ba6053bb46.tar.gz
fernflower-1cea85e49ae7659e7124383b619730ba6053bb46.tar.lz
fernflower-1cea85e49ae7659e7124383b619730ba6053bb46.tar.xz
fernflower-1cea85e49ae7659e7124383b619730ba6053bb46.zip
java-decompiler: optimization (less string buffer allocations on generating text)
Diffstat (limited to 'testData')
-rw-r--r--testData/results/TestClassFields.dec3
-rw-r--r--testData/results/TestClassLambda.dec2
-rw-r--r--testData/results/TestClassLoop.dec2
-rw-r--r--testData/results/TestClassSwitch.dec2
-rw-r--r--testData/results/TestClassTypes.dec1
-rw-r--r--testData/results/TestClassVar.dec3
-rw-r--r--testData/results/TestCodeConstructs.dec3
-rw-r--r--testData/results/TestConstants.dec3
-rw-r--r--testData/results/TestDeprecations.dec5
-rw-r--r--testData/results/TestEnum.dec5
-rw-r--r--testData/results/TestExtendsList.dec2
-rw-r--r--testData/results/TestMethodParameters.dec5
12 files changed, 1 insertions, 35 deletions
diff --git a/testData/results/TestClassFields.dec b/testData/results/TestClassFields.dec
index 2a20fb8..749d828 100644
--- a/testData/results/TestClassFields.dec
+++ b/testData/results/TestClassFields.dec
@@ -1,12 +1,9 @@
package pkg;
-
public class TestClassFields {
-
private static int[] sizes;
private static String[] names = new String[]{"name1", "name2"};
-
static {
sizes = new int[names.length];
}
diff --git a/testData/results/TestClassLambda.dec b/testData/results/TestClassLambda.dec
index 7310d2d..d0485d3 100644
--- a/testData/results/TestClassLambda.dec
+++ b/testData/results/TestClassLambda.dec
@@ -10,10 +10,8 @@ import java.util.function.Predicate;
import java.util.function.Supplier;
public class TestClassLambda {
-
public int field = 0;
-
public void testLambda() {
List var1 = Arrays.asList(new Integer[]{Integer.valueOf(1), Integer.valueOf(2), Integer.valueOf(3), Integer.valueOf(4), Integer.valueOf(5), Integer.valueOf(6), Integer.valueOf(7)});
int var2 = (int)Math.random();
diff --git a/testData/results/TestClassLoop.dec b/testData/results/TestClassLoop.dec
index b231ae0..74b8bac 100644
--- a/testData/results/TestClassLoop.dec
+++ b/testData/results/TestClassLoop.dec
@@ -1,8 +1,6 @@
package pkg;
-
public class TestClassLoop {
-
public static void testSimpleInfinite() {
while(true) {
System.out.println();
diff --git a/testData/results/TestClassSwitch.dec b/testData/results/TestClassSwitch.dec
index 496dd15..50efbe9 100644
--- a/testData/results/TestClassSwitch.dec
+++ b/testData/results/TestClassSwitch.dec
@@ -1,8 +1,6 @@
package pkg;
-
public class TestClassSwitch {
-
public void testCaseOrder(int var1) {
switch(var1) {
case 5:
diff --git a/testData/results/TestClassTypes.dec b/testData/results/TestClassTypes.dec
index 2c856b1..7a50473 100644
--- a/testData/results/TestClassTypes.dec
+++ b/testData/results/TestClassTypes.dec
@@ -4,7 +4,6 @@ import java.util.ArrayList;
import java.util.List;
public class TestClassTypes {
-
public void testBoolean() {
byte var1 = 0;
long var2 = System.currentTimeMillis();
diff --git a/testData/results/TestClassVar.dec b/testData/results/TestClassVar.dec
index ceb3a4d..4cfd27f 100644
--- a/testData/results/TestClassVar.dec
+++ b/testData/results/TestClassVar.dec
@@ -1,12 +1,9 @@
package pkg;
-
public class TestClassVar {
-
private boolean field_boolean = Math.random() > 0.0D;
public int field_int = 0;
-
public void testFieldSSAU() {
for(int var1 = 0; var1 < 10; ++var1) {
try {
diff --git a/testData/results/TestCodeConstructs.dec b/testData/results/TestCodeConstructs.dec
index da9b30c..d2d5c75 100644
--- a/testData/results/TestCodeConstructs.dec
+++ b/testData/results/TestCodeConstructs.dec
@@ -1,11 +1,8 @@
package pkg;
-
class TestCodeConstructs {
-
private int count = 0;
-
void expressions() {
(new String()).hashCode();
}
diff --git a/testData/results/TestConstants.dec b/testData/results/TestConstants.dec
index 275c1e4..216da8e 100644
--- a/testData/results/TestConstants.dec
+++ b/testData/results/TestConstants.dec
@@ -3,7 +3,6 @@ package pkg;
import java.util.Date;
public class TestConstants {
-
static final boolean T = true;
static final boolean F = false;
static final char C0 = '\n';
@@ -28,7 +27,6 @@ public class TestConstants {
static final double DMin = 4.9E-324D;
static final double DMax = 1.7976931348623157E308D;
-
@TestConstants.A(byte.class)
void m1() {
}
@@ -70,7 +68,6 @@ public class TestConstants {
}
@interface A {
-
Class<?> value();
}
}
diff --git a/testData/results/TestDeprecations.dec b/testData/results/TestDeprecations.dec
index 9dd5737..237ac9c 100644
--- a/testData/results/TestDeprecations.dec
+++ b/testData/results/TestDeprecations.dec
@@ -1,15 +1,12 @@
package pkg;
-
public class TestDeprecations {
-
/** @deprecated */
public int byComment;
/** @deprecated */
@Deprecated
public int byAnno;
-
/** @deprecated */
public void byComment() {
}
@@ -22,11 +19,9 @@ public class TestDeprecations {
/** @deprecated */
@Deprecated
public static class ByAnno {
-
}
/** @deprecated */
public static class ByComment {
-
}
}
diff --git a/testData/results/TestEnum.dec b/testData/results/TestEnum.dec
index 6aa64c7..b32a3d9 100644
--- a/testData/results/TestEnum.dec
+++ b/testData/results/TestEnum.dec
@@ -1,8 +1,6 @@
package pkg;
-
public enum TestEnum {
-
E1,
E2 {
public void m() {
@@ -13,8 +11,8 @@ public enum TestEnum {
public void m() {
}
};
- private String s;
+ private String s;
public void m() {
}
@@ -26,5 +24,4 @@ public enum TestEnum {
private TestEnum(@Deprecated String var3) {
this.s = var3;
}
-
}
diff --git a/testData/results/TestExtendsList.dec b/testData/results/TestExtendsList.dec
index 133281e..b4aacf6 100644
--- a/testData/results/TestExtendsList.dec
+++ b/testData/results/TestExtendsList.dec
@@ -1,8 +1,6 @@
package pkg;
-
public class TestExtendsList {
-
static <T extends Comparable<? super T>> T m1(T var0) {
return null;
}
diff --git a/testData/results/TestMethodParameters.dec b/testData/results/TestMethodParameters.dec
index ff23e1c..e4c4724 100644
--- a/testData/results/TestMethodParameters.dec
+++ b/testData/results/TestMethodParameters.dec
@@ -1,8 +1,6 @@
package pkg;
-
public class TestMethodParameters {
-
TestMethodParameters(@Deprecated int var1) {
}
@@ -14,7 +12,6 @@ public class TestMethodParameters {
void local() {
class Local {
-
Local(@Deprecated int var2) {
}
@@ -25,7 +22,6 @@ public class TestMethodParameters {
}
static class C2 {
-
C2(@Deprecated int var1) {
}
@@ -37,7 +33,6 @@ public class TestMethodParameters {
}
class C1 {
-
C1(@Deprecated int var2) {
}