1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00

bug 419207: Regular Expression matching is slow in Error Parser

Signed-off-by: Johann Draschwandtner <johann.draschwandtner@windriver.com>
This commit is contained in:
Johann Draschwandtner 2013-10-15 09:51:25 -04:00 committed by Andrew Gvozdev
parent 410d532bde
commit b36cb27a1e

View file

@ -277,9 +277,9 @@ public class RegexErrorPattern implements Cloneable {
*/
public boolean processLine(String line, ErrorParserManager eoParser) {
Matcher matcher = getMatcher(line);
// pattern should cover the whole line
if (!(matcher.find() && matcher.group(0).length()==line.length()))
if (!matcher.matches()) {
return false;
}
recordError(matcher, eoParser);
return eatProcessedLine;