From 89408b5bea3f34d763cee71c3c8149dab9f427f5 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Tue, 22 Jun 2010 14:06:56 +0400 Subject: [PATCH] cleanup --- .../src/com/intellij/codeInsight/daemon/impl/IndentsPass.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/IndentsPass.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/IndentsPass.java index ab4fbd2a8a44..95d020771ad4 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/IndentsPass.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/IndentsPass.java @@ -140,7 +140,7 @@ public class IndentsPass extends TextEditorHighlightingPass implements DumbAware List descriptors = buildDescriptors(); - List ranges = new ArrayList(); + List ranges = new ArrayList(descriptors.size()); for (IndentGuideDescriptor descriptor : descriptors) { int endOffset = descriptor.endLine < myDocument.getLineCount() ? myDocument.getLineStartOffset(descriptor.endLine) : myDocument.getTextLength();