From abbf2daf305258a2d661edd901bbb41cebf4be75 Mon Sep 17 00:00:00 2001 From: "Egor.Ushakov" Date: Fri, 13 Jan 2017 13:04:32 +0300 Subject: [PATCH] use known list size --- .../java/decompiler/main/rels/NestedClassProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/org/jetbrains/java/decompiler/main/rels/NestedClassProcessor.java b/src/org/jetbrains/java/decompiler/main/rels/NestedClassProcessor.java index 12e2de1..ef64f2c 100644 --- a/src/org/jetbrains/java/decompiler/main/rels/NestedClassProcessor.java +++ b/src/org/jetbrains/java/decompiler/main/rels/NestedClassProcessor.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2015 JetBrains s.r.o. + * Copyright 2000-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -605,7 +605,7 @@ public class NestedClassProcessor { DirectGraph graph = method.getOrBuildGraph(); if (graph != null) { // something gone wrong, should not be null - List fields = new ArrayList<>(); + List fields = new ArrayList<>(md.params.length); int varIndex = 1; for (int i = 0; i < md.params.length; i++) { // no static methods allowed