diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ErrorParserManager.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ErrorParserManager.java index d58c4c521c6..2281d3c3c27 100644 --- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ErrorParserManager.java +++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ErrorParserManager.java @@ -205,15 +205,10 @@ public class ErrorParserManager extends OutputStream { // Don't process it since it'll probably be really slow and won't find an error anyway if (line.length() > 1000) return; - - String[] parserIDs = new String[fErrorParsers.size()]; - Iterator items = fErrorParsers.keySet().iterator(); - for (int i = 0; items.hasNext(); i++) { - parserIDs[i] = items.next(); - } - for (int i = 0; i < parserIDs.length; ++i) { - IErrorParser[] parsers = fErrorParsers.get(parserIDs[i]); + for (Iterator items = fErrorParsers.keySet().iterator();items.hasNext();) { + String parserId = items.next(); + IErrorParser[] parsers = fErrorParsers.get(parserId); for (IErrorParser curr : parsers) { if (curr.processLine(line, this)) { return;