Skip to content

Commit

Permalink
Disable GenericsProcessor temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskarth committed Aug 3, 2023
1 parent 97066f2 commit 6eb15f0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,9 @@ public static RootStatement codeToJava(StructClass cl, StructMethod mt, MethodDe
decompileRecord.add("HideEmptyDefault", root);
}

if (GenericsProcessor.qualifyChains(root)) {
decompileRecord.add("QualifyGenericChains", root);
}
// if (GenericsProcessor.qualifyChains(root)) {
// decompileRecord.add("QualifyGenericChains", root);
// }

if (ExprProcessor.canonicalizeCasts(root)) {
decompileRecord.add("CanonicalizeCasts", root);
Expand Down
12 changes: 6 additions & 6 deletions testData/results/pkg/TestGenericsQualified.dec
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import java.util.concurrent.CompletableFuture;
import java.util.stream.Stream;

public class TestGenericsQualified {
public Comparator<String> field = Comparator.<String, Integer>comparing(s -> s.length()).thenComparing(i -> i.toString());// 10
public CompletableFuture<String> field2 = CompletableFuture.<String>supplyAsync(() -> "").thenCompose(s -> CompletableFuture.supplyAsync(() -> s + "2"));// 11
public Comparator<String> field = Comparator.comparing(s -> s.length()).thenComparing(i -> i.toString());// 10
public CompletableFuture<String> field2 = CompletableFuture.supplyAsync(() -> "").thenCompose(s -> CompletableFuture.supplyAsync(() -> s + "2"));// 11
public Optional<String> field3 = Optional.of("").map(s -> s + "3");// 12
public Stream<String> field4 = Stream.of("1", "2").sorted(Comparator.<String, Integer>comparing(s -> s.length()).thenComparing(i -> i.toString()));// 14
public Stream<String> field4 = Stream.of("1", "2").sorted(Comparator.comparing(s -> s.length()).thenComparing(i -> i.toString()));// 14
public Comparator<String> field5 = Comparator.comparing(String::length).thenComparing(i -> i.toString());// 15
public Comparator<TestGenericsQualified> field6 = Comparator.<TestGenericsQualified, Integer>comparing(TestGenericsQualified::get).reversed();
public Comparator<TestGenericsQualified> field6 = Comparator.comparing(TestGenericsQualified::get).reversed();

public int get() {
return 0;// 19
Expand All @@ -22,7 +22,7 @@ public class TestGenericsQualified {
}

public Comparator<String> method() {
return Comparator.<String, Integer>comparing(s -> s.length()).thenComparing(i -> i.toString());// 27
return Comparator.comparing(s -> s.length()).thenComparing(i -> i.toString());// 27
}
}

Expand Down Expand Up @@ -156,4 +156,4 @@ Lines mapping:
15 <-> 13
19 <-> 17
23 <-> 21
27 <-> 25
27 <-> 25

0 comments on commit 6eb15f0

Please sign in to comment.