Fixing typos in StandardStackTracePrinter

See gh-44396

Signed-off-by: Tyler Gregory <tyler.w.gregory@gmail.com>
This commit is contained in:
Tyler Gregory 2025-02-21 10:46:59 -06:00 committed by Stéphane Nicoll
parent ea0eea371d
commit 6e6d8de8ed
1 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@ public final class StandardStackTracePrinter implements StackTracePrinter {
private static final ToIntFunction<StackTraceElement> DEFAULT_FRAME_HASHER = (frame) -> Objects
.hash(frame.getClassName(), frame.getMethodName(), frame.getLineNumber());
private static final int UNLIMTED = Integer.MAX_VALUE;
private static final int UNLIMITED = Integer.MAX_VALUE;
private final EnumSet<Option> options;
@ -286,7 +286,7 @@ public final class StandardStackTracePrinter implements StackTracePrinter {
* @return a {@link StandardStackTracePrinter} that prints the stack trace root last
*/
public static StandardStackTracePrinter rootLast() {
return new StandardStackTracePrinter(EnumSet.noneOf(Option.class), UNLIMTED, null, null, null, null, null,
return new StandardStackTracePrinter(EnumSet.noneOf(Option.class), UNLIMITED, null, null, null, null, null,
null);
}
@ -296,7 +296,7 @@ public final class StandardStackTracePrinter implements StackTracePrinter {
* @return a {@link StandardStackTracePrinter} that prints the stack trace root first
*/
public static StandardStackTracePrinter rootFirst() {
return new StandardStackTracePrinter(EnumSet.of(Option.ROOT_FIRST), UNLIMTED, null, null, null, null, null,
return new StandardStackTracePrinter(EnumSet.of(Option.ROOT_FIRST), UNLIMITED, null, null, null, null, null,
null);
}
@ -385,7 +385,7 @@ public final class StandardStackTracePrinter implements StackTracePrinter {
/**
* Holds the stacktrace for a specific throwable and caches things that are expensive
* to calcualte.
* to calculate.
*/
private static final class StackTrace {