mbien commented on code in PR #5099: URL: https://github.com/apache/netbeans/pull/5099#discussion_r1050168092
########## java/maven/src/org/netbeans/modules/maven/execute/CommandLineOutputHandler.java: ########## @@ -390,7 +422,7 @@ private ExecutionEventObject parseExecEvent(String line) { * or is another text, and update folds accordingly. */ private void updateFoldForException(String line) { - if (stackTraceElement.matcher(line).find()) { + if (line.endsWith(")") && stackTraceElement.matcher(line).matches()) { Review Comment: now I remember why i switched it to find() in the first place: the folding code was already using `find()` using the same pattern :) updated the regexp and switched everything to `matches()` + added a fast path for even less overhead. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists