1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

- removed useless code that was causing unnecessary array object creation every for every line of build output

This commit is contained in:
Alena Laskavaia 2008-10-22 17:45:54 +00:00
parent 19af0eaeeb
commit 9f9adbe864

View file

@ -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 // Don't process it since it'll probably be really slow and won't find an error anyway
if (line.length() > 1000) if (line.length() > 1000)
return; return;
String[] parserIDs = new String[fErrorParsers.size()];
Iterator<String> items = fErrorParsers.keySet().iterator();
for (int i = 0; items.hasNext(); i++) {
parserIDs[i] = items.next();
}
for (int i = 0; i < parserIDs.length; ++i) { for (Iterator<String> items = fErrorParsers.keySet().iterator();items.hasNext();) {
IErrorParser[] parsers = fErrorParsers.get(parserIDs[i]); String parserId = items.next();
IErrorParser[] parsers = fErrorParsers.get(parserId);
for (IErrorParser curr : parsers) { for (IErrorParser curr : parsers) {
if (curr.processLine(line, this)) { if (curr.processLine(line, this)) {
return; return;