summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohann Draschwandtner2013-10-15 09:51:25 (EDT)
committer Andrew Gvozdev2013-10-15 09:52:33 (EDT)
commitb36cb27a1e7368a64c211edbb9c4b4223246a63d (patch)
tree5cf46350667e3ed0c2c5d3915ba9aa49ebf241f6
parent410d532bde0dcb2c15f65007ee402deac96b3b07 (diff)
downloadorg.eclipse.cdt-b36cb27a1e7368a64c211edbb9c4b4223246a63d.zip
org.eclipse.cdt-b36cb27a1e7368a64c211edbb9c4b4223246a63d.tar.gz
org.eclipse.cdt-b36cb27a1e7368a64c211edbb9c4b4223246a63d.tar.bz2
bug 419207: Regular Expression matching is slow in Error Parser
Signed-off-by: Johann Draschwandtner <johann.draschwandtner@windriver.com>
-rw-r--r--core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/errorparsers/RegexErrorPattern.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/errorparsers/RegexErrorPattern.java b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/errorparsers/RegexErrorPattern.java
index 5683e49..98108d1 100644
--- a/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/errorparsers/RegexErrorPattern.java
+++ b/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/errorparsers/RegexErrorPattern.java
@@ -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;