File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/main/java/org/apache/commons/lang3/exception Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -386,13 +386,12 @@ public static List<String> getRootCauseStackTraceList(final Throwable throwable)
386386 }
387387
388388 /**
389- * Gets a {@link List} of stack frames - the message
389+ * Gets a {@link List} of stack frames, the message
390390 * is not included. Only the trace of the specified exception is
391391 * returned, any caused by trace is stripped.
392392 *
393- * <p>This works in most cases - it will only fail if the exception
394- * message contains a line that starts with:
395- * {@code " at".}</p>
393+ * <p>This works in most cases and will only fail if the exception
394+ * message contains a line that starts with: {@code "<whitespace>at"}.</p>
396395 *
397396 * @param throwable is any throwable
398397 * @return List of stack frames
@@ -405,7 +404,7 @@ static List<String> getStackFrameList(final Throwable throwable) {
405404 boolean traceStarted = false ;
406405 while (frames .hasMoreTokens ()) {
407406 final String token = frames .nextToken ();
408- // Determine if the line starts with <whitespace>at
407+ // Determine if the line starts with " <whitespace>at"
409408 final int at = token .indexOf ("at" );
410409 if (at != NOT_FOUND && token .substring (0 , at ).trim ().isEmpty ()) {
411410 traceStarted = true ;
You can’t perform that action at this time.
0 commit comments