MCPcopy Create free account
hub / github.com/antlr/codebuff / lazyStackTrace

Method lazyStackTrace

corpus/java/training/guava/base/Throwables.java:327–334  ·  view source on GitHub ↗
(Throwable throwable)

Source from the content-addressed store, hash-verified

325 */
326 // TODO(cpovirk): Say something about the possibility that List access could fail at runtime?
327 @Beta
328 @GwtIncompatible // lazyStackTraceIsLazy, jlaStackTrace
329 // TODO(cpovirk): Consider making this available under GWT (slow implementation only).
330 public static List<StackTraceElement> lazyStackTrace(Throwable throwable) {
331 return lazyStackTraceIsLazy()
332 ? jlaStackTrace(throwable)
333 : unmodifiableList(asList(throwable.getStackTrace()));
334 }
335
336 /**
337 * Returns whether {@link #lazyStackTrace} will use the special implementation described in its

Callers

nothing calls this directly

Calls 3

lazyStackTraceIsLazyMethod · 0.95
jlaStackTraceMethod · 0.95
asListMethod · 0.45

Tested by

no test coverage detected