This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
commit 784e262c89d80d691ee4ccb770b5568b162d42d4 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Jan 19 14:16:57 2025 -0500 Javadoc and comment --- .../java/org/apache/commons/lang3/exception/ExceptionUtils.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java b/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java index 474c6fe9a..d446dcc11 100644 --- a/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java +++ b/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java @@ -386,13 +386,12 @@ public static List<String> getRootCauseStackTraceList(final Throwable throwable) } /** - * Gets a {@link List} of stack frames - the message + * Gets a {@link List} of stack frames, the message * is not included. Only the trace of the specified exception is * returned, any caused by trace is stripped. * - * <p>This works in most cases - it will only fail if the exception - * message contains a line that starts with: - * {@code " at".}</p> + * <p>This works in most cases and will only fail if the exception + * message contains a line that starts with: {@code "<whitespace>at"}.</p> * * @param throwable is any throwable * @return List of stack frames @@ -405,7 +404,7 @@ static List<String> getStackFrameList(final Throwable throwable) { boolean traceStarted = false; while (frames.hasMoreTokens()) { final String token = frames.nextToken(); - // Determine if the line starts with <whitespace>at + // Determine if the line starts with "<whitespace>at" final int at = token.indexOf("at"); if (at != NOT_FOUND && token.substring(0, at).trim().isEmpty()) { traceStarted = true;