From f9c29f0c92c82ecf18c9b22b5e530cfe446aa593 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Mon, 13 May 2019 15:57:11 +0300 Subject: [PATCH] add PECS wildcards to method signatures where necessary and where methods are not overridden by plugins GitOrigin-RevId: 1ec7f1a1aa17d2d4f42e647207323ab8a3138683 --- .../jetbrains/java/decompiler/code/cfg/ControlFlowGraph.java | 2 +- .../java/decompiler/main/ClassReference14Processor.java | 2 +- .../java/decompiler/main/decompiler/ConsoleDecompiler.java | 2 +- .../java/decompiler/main/rels/NestedClassProcessor.java | 2 +- .../decompiler/modules/decompiler/StackVarsProcessor.java | 2 +- .../decompiler/modules/decompiler/sforms/DirectGraph.java | 2 +- .../java/decompiler/modules/decompiler/stats/Statement.java | 4 ++-- .../decompiler/modules/decompiler/vars/VarVersionsGraph.java | 2 +- .../java/decompiler/struct/gen/generics/GenericMain.java | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/org/jetbrains/java/decompiler/code/cfg/ControlFlowGraph.java b/src/org/jetbrains/java/decompiler/code/cfg/ControlFlowGraph.java index 3c6b14d..08223cf 100644 --- a/src/org/jetbrains/java/decompiler/code/cfg/ControlFlowGraph.java +++ b/src/org/jetbrains/java/decompiler/code/cfg/ControlFlowGraph.java @@ -745,7 +745,7 @@ public class ControlFlowGraph implements CodeConstants { return res; } - private static void addToReversePostOrderListIterative(BasicBlock root, List lst) { + private static void addToReversePostOrderListIterative(BasicBlock root, List lst) { LinkedList stackNode = new LinkedList<>(); LinkedList stackIndex = new LinkedList<>(); diff --git a/src/org/jetbrains/java/decompiler/main/ClassReference14Processor.java b/src/org/jetbrains/java/decompiler/main/ClassReference14Processor.java index a6369f5..41b5a9a 100644 --- a/src/org/jetbrains/java/decompiler/main/ClassReference14Processor.java +++ b/src/org/jetbrains/java/decompiler/main/ClassReference14Processor.java @@ -74,7 +74,7 @@ public class ClassReference14Processor { } } - private static void processClassRec(ClassNode node, Map mapClassMeths, Set setFound) { + private static void processClassRec(ClassNode node, Map mapClassMeths, Set setFound) { ClassWrapper wrapper = node.getWrapper(); // search code diff --git a/src/org/jetbrains/java/decompiler/main/decompiler/ConsoleDecompiler.java b/src/org/jetbrains/java/decompiler/main/decompiler/ConsoleDecompiler.java index 684249e..120470d 100644 --- a/src/org/jetbrains/java/decompiler/main/decompiler/ConsoleDecompiler.java +++ b/src/org/jetbrains/java/decompiler/main/decompiler/ConsoleDecompiler.java @@ -83,7 +83,7 @@ public class ConsoleDecompiler implements IBytecodeProvider, IResultSaver { } @SuppressWarnings("UseOfSystemOutOrSystemErr") - private static void addPath(List list, String path) { + private static void addPath(List list, String path) { File file = new File(path); if (file.exists()) { list.add(file); diff --git a/src/org/jetbrains/java/decompiler/main/rels/NestedClassProcessor.java b/src/org/jetbrains/java/decompiler/main/rels/NestedClassProcessor.java index 1b91f44..da17532 100644 --- a/src/org/jetbrains/java/decompiler/main/rels/NestedClassProcessor.java +++ b/src/org/jetbrains/java/decompiler/main/rels/NestedClassProcessor.java @@ -798,7 +798,7 @@ public class NestedClassProcessor { return null; } - private static Statement getDefStatement(Statement stat, VarType classType, Set setStats) { + private static Statement getDefStatement(Statement stat, VarType classType, Set setStats) { List lst = new ArrayList<>(); Statement retStat = null; diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/StackVarsProcessor.java b/src/org/jetbrains/java/decompiler/modules/decompiler/StackVarsProcessor.java index c235387..1232e64 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/StackVarsProcessor.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/StackVarsProcessor.java @@ -525,7 +525,7 @@ public class StackVarsProcessor { return new Object[]{null, changed, false}; } - private static boolean getUsedVersions(SSAUConstructorSparseEx ssa, VarVersionPair var, List res) { + private static boolean getUsedVersions(SSAUConstructorSparseEx ssa, VarVersionPair var, List res) { VarVersionsGraph ssuversions = ssa.getSsuversions(); VarVersionNode varnode = ssuversions.nodes.getWithKey(var); diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/sforms/DirectGraph.java b/src/org/jetbrains/java/decompiler/modules/decompiler/sforms/DirectGraph.java index 6f33885..aa2fae8 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/sforms/DirectGraph.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/sforms/DirectGraph.java @@ -39,7 +39,7 @@ public class DirectGraph { } } - private static void addToReversePostOrderListIterative(DirectNode root, List lst) { + private static void addToReversePostOrderListIterative(DirectNode root, List lst) { LinkedList stackNode = new LinkedList<>(); LinkedList stackIndex = new LinkedList<>(); diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/Statement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/Statement.java index e57e9ef..b5e8213 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/Statement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/Statement.java @@ -546,7 +546,7 @@ public class Statement implements IMatchable { // private methods // ***************************************************************************** - private static void addToReversePostOrderListIterative(Statement root, List lst) { + private static void addToReversePostOrderListIterative(Statement root, List lst) { LinkedList stackNode = new LinkedList<>(); LinkedList stackIndex = new LinkedList<>(); @@ -589,7 +589,7 @@ public class Statement implements IMatchable { } - private static void addToPostReversePostOrderList(Statement stat, List lst, HashSet setVisited) { + private static void addToPostReversePostOrderList(Statement stat, List lst, HashSet setVisited) { if (setVisited.contains(stat)) { // because of not considered exception edges, s. isExitComponent. Should be rewritten, if possible. return; diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/vars/VarVersionsGraph.java b/src/org/jetbrains/java/decompiler/modules/decompiler/vars/VarVersionsGraph.java index e295915..58eda68 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/vars/VarVersionsGraph.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/vars/VarVersionsGraph.java @@ -99,7 +99,7 @@ public class VarVersionsGraph { return lst; } - private static void addToReversePostOrderListIterative(VarVersionNode root, List lst, Set setVisited) { + private static void addToReversePostOrderListIterative(VarVersionNode root, List lst, Set setVisited) { Map> mapNodeSuccs = new HashMap<>(); LinkedList stackNode = new LinkedList<>(); LinkedList stackIndex = new LinkedList<>(); diff --git a/src/org/jetbrains/java/decompiler/struct/gen/generics/GenericMain.java b/src/org/jetbrains/java/decompiler/struct/gen/generics/GenericMain.java index 45ca557..3e4e1f1 100644 --- a/src/org/jetbrains/java/decompiler/struct/gen/generics/GenericMain.java +++ b/src/org/jetbrains/java/decompiler/struct/gen/generics/GenericMain.java @@ -95,7 +95,7 @@ public class GenericMain { } } - private static String parseFormalParameters(String signature, List parameters, List> bounds) { + private static String parseFormalParameters(String signature, List parameters, List> bounds) { if (signature.charAt(0) != '<') { return signature; }