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 2281d3c3c27..9fb2f962998 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 @@ -206,9 +206,7 @@ public class ErrorParserManager extends OutputStream { if (line.length() > 1000) return; - for (Iterator items = fErrorParsers.keySet().iterator();items.hasNext();) { - String parserId = items.next(); - IErrorParser[] parsers = fErrorParsers.get(parserId); + for (IErrorParser[] parsers : fErrorParsers.values()) { for (IErrorParser curr : parsers) { if (curr.processLine(line, this)) { return;