From c66c8fc54ea567a502905010f6a6792ebefac32f Mon Sep 17 00:00:00 2001 From: Anton Makeev Date: Mon, 6 May 2019 23:01:12 +0200 Subject: [PATCH] IDEA-210281 Cleanup Gradle settings: separate Runner configurable removed GitOrigin-RevId: adbc39121fe91beb633e125b4cf39bfe0a422e4b --- .../jetbrains/java/decompiler/code/cfg/ControlFlowGraph.java | 2 +- .../java/decompiler/main/ClassReference14Processor.java | 2 +- src/org/jetbrains/java/decompiler/main/Fernflower.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/modules/renamer/ConverterHelper.java | 2 +- .../java/decompiler/struct/gen/generics/GenericMain.java | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/org/jetbrains/java/decompiler/code/cfg/ControlFlowGraph.java b/src/org/jetbrains/java/decompiler/code/cfg/ControlFlowGraph.java index 08223cf..3c6b14d 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 41b5a9a..a6369f5 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/Fernflower.java b/src/org/jetbrains/java/decompiler/main/Fernflower.java index 692c1b6..37a7db1 100644 --- a/src/org/jetbrains/java/decompiler/main/Fernflower.java +++ b/src/org/jetbrains/java/decompiler/main/Fernflower.java @@ -32,7 +32,7 @@ public class Fernflower implements IDecompiledData { String level = (String)properties.get(IFernflowerPreferences.LOG_LEVEL); if (level != null) { try { - logger.setSeverity(IFernflowerLogger.Severity.valueOf(level.toUpperCase(Locale.ENGLISH))); + logger.setSeverity(IFernflowerLogger.Severity.valueOf(level.toUpperCase(Locale.US))); } catch (IllegalArgumentException ignore) { } } diff --git a/src/org/jetbrains/java/decompiler/main/decompiler/ConsoleDecompiler.java b/src/org/jetbrains/java/decompiler/main/decompiler/ConsoleDecompiler.java index 120470d..684249e 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 da17532..1b91f44 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 1232e64..c235387 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 aa2fae8..6f33885 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 b5e8213..e57e9ef 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 58eda68..e295915 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/modules/renamer/ConverterHelper.java b/src/org/jetbrains/java/decompiler/modules/renamer/ConverterHelper.java index 4949a00..93b3de7 100644 --- a/src/org/jetbrains/java/decompiler/modules/renamer/ConverterHelper.java +++ b/src/org/jetbrains/java/decompiler/modules/renamer/ConverterHelper.java @@ -33,7 +33,7 @@ public class ConverterHelper implements IIdentifierRenamer { !isValidIdentifier(elementType == Type.ELEMENT_METHOD, value) || KEYWORDS.contains(value) || elementType == Type.ELEMENT_CLASS && ( - RESERVED_WINDOWS_NAMESPACE.contains(value.toLowerCase(Locale.ENGLISH)) || + RESERVED_WINDOWS_NAMESPACE.contains(value.toLowerCase(Locale.US)) || value.length() > 255 - ".class".length()); } 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 3e4e1f1..45ca557 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; }