This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-bcel.git
The following commit(s) were added to refs/heads/master by this push: new ca536cd Use Map size() directly. ca536cd is described below commit ca536cdc057640716973d6561e0c930f6d385773 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun May 24 16:51:03 2020 -0400 Use Map size() directly. --- src/main/java/org/apache/bcel/verifier/VerifierFactory.java | 2 +- .../java/org/apache/bcel/verifier/structurals/ControlFlowGraph.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/bcel/verifier/VerifierFactory.java b/src/main/java/org/apache/bcel/verifier/VerifierFactory.java index bd0c432..444005e 100644 --- a/src/main/java/org/apache/bcel/verifier/VerifierFactory.java +++ b/src/main/java/org/apache/bcel/verifier/VerifierFactory.java @@ -84,7 +84,7 @@ public class VerifierFactory { * referenced class files. */ public static Verifier[] getVerifiers() { - final Verifier[] vs = new Verifier[hashMap.values().size()]; + final Verifier[] vs = new Verifier[hashMap.size()]; return hashMap.values().toArray(vs); // Because vs is big enough, vs is used to store the values into and returned! } diff --git a/src/main/java/org/apache/bcel/verifier/structurals/ControlFlowGraph.java b/src/main/java/org/apache/bcel/verifier/structurals/ControlFlowGraph.java index f977a5e..62c0fce 100644 --- a/src/main/java/org/apache/bcel/verifier/structurals/ControlFlowGraph.java +++ b/src/main/java/org/apache/bcel/verifier/structurals/ControlFlowGraph.java @@ -462,7 +462,7 @@ public class ControlFlowGraph{ * <B>(NOT ORDERED!)</B>. */ public InstructionContext[] getInstructionContexts() { - final InstructionContext[] ret = new InstructionContext[instructionContexts.values().size()]; + final InstructionContext[] ret = new InstructionContext[instructionContexts.size()]; return instructionContexts.values().toArray(ret); }