Skip to content

Commit 784e262

Browse files
committed
Javadoc and comment
1 parent 25f7d85 commit 784e262

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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 &quot;&nbsp;&nbsp;&nbsp;at&quot;.}</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;

0 commit comments

Comments
 (0)