From 5650f57ad2b52acd043a41dac3bb905ee1c2fff7 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Tue, 2 Oct 2018 14:21:33 +0300 Subject: [PATCH] Use bounded wildcards in API in constructors/final methods to make it more conventional and flexible --- .../modules/decompiler/exps/AnnotationExprent.java | 6 +++--- .../decompiler/modules/decompiler/exps/AssertExprent.java | 4 ++-- .../modules/decompiler/exps/InvocationExprent.java | 2 +- .../modules/decompiler/stats/GeneralStatement.java | 2 +- .../modules/decompiler/stats/SequenceStatement.java | 2 +- .../java/decompiler/util/FastSparseSetFactory.java | 2 +- src/org/jetbrains/java/decompiler/util/ListStack.java | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/exps/AnnotationExprent.java b/src/org/jetbrains/java/decompiler/modules/decompiler/exps/AnnotationExprent.java index 13491fc..c9c9c7f 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/exps/AnnotationExprent.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/exps/AnnotationExprent.java @@ -17,10 +17,10 @@ public class AnnotationExprent extends Exprent { public static final int ANNOTATION_SINGLE_ELEMENT = 3; private final String className; - private final List parNames; - private final List parValues; + private final List parNames; + private final List parValues; - public AnnotationExprent(String className, List parNames, List parValues) { + public AnnotationExprent(String className, List parNames, List parValues) { super(EXPRENT_ANNOTATION); this.className = className; this.parNames = parNames; diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/exps/AssertExprent.java b/src/org/jetbrains/java/decompiler/modules/decompiler/exps/AssertExprent.java index 0ae9fee..0dcb63d 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/exps/AssertExprent.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/exps/AssertExprent.java @@ -10,9 +10,9 @@ import java.util.List; public class AssertExprent extends Exprent { - private final List parameters; + private final List parameters; - public AssertExprent(List parameters) { + public AssertExprent(List parameters) { super(EXPRENT_ASSERT); this.parameters = parameters; } diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/exps/InvocationExprent.java b/src/org/jetbrains/java/decompiler/modules/decompiler/exps/InvocationExprent.java index 8472cef..1abaf32 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/exps/InvocationExprent.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/exps/InvocationExprent.java @@ -66,7 +66,7 @@ public class InvocationExprent extends Exprent { public InvocationExprent(int opcode, LinkConstant cn, List bootstrapArguments, - ListStack stack, + ListStack stack, Set bytecodeOffsets) { this(); diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/GeneralStatement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/GeneralStatement.java index 56ada55..0891a47 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/GeneralStatement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/GeneralStatement.java @@ -18,7 +18,7 @@ public class GeneralStatement extends Statement { type = Statement.TYPE_GENERAL; } - public GeneralStatement(Statement head, Collection statements, Statement post) { + public GeneralStatement(Statement head, Collection statements, Statement post) { this(); diff --git a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SequenceStatement.java b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SequenceStatement.java index 7acad0c..8aa6adc 100644 --- a/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SequenceStatement.java +++ b/src/org/jetbrains/java/decompiler/modules/decompiler/stats/SequenceStatement.java @@ -22,7 +22,7 @@ public class SequenceStatement extends Statement { type = Statement.TYPE_SEQUENCE; } - public SequenceStatement(List lst) { + public SequenceStatement(List lst) { this(); diff --git a/src/org/jetbrains/java/decompiler/util/FastSparseSetFactory.java b/src/org/jetbrains/java/decompiler/util/FastSparseSetFactory.java index 08bf156..b955139 100644 --- a/src/org/jetbrains/java/decompiler/util/FastSparseSetFactory.java +++ b/src/org/jetbrains/java/decompiler/util/FastSparseSetFactory.java @@ -14,7 +14,7 @@ public class FastSparseSetFactory { private int lastMask; - public FastSparseSetFactory(Collection set) { + public FastSparseSetFactory(Collection set) { int block = -1; int mask = -1; diff --git a/src/org/jetbrains/java/decompiler/util/ListStack.java b/src/org/jetbrains/java/decompiler/util/ListStack.java index d5ae774..ac0dad9 100644 --- a/src/org/jetbrains/java/decompiler/util/ListStack.java +++ b/src/org/jetbrains/java/decompiler/util/ListStack.java @@ -10,7 +10,7 @@ public class ListStack extends ArrayList { super(); } - public ListStack(ArrayList list) { + public ListStack(ArrayList list) { super(list); }