Returns the Method that can be used to return the size of a stack, or null if that method cannot be found (it is only to be found in fairly recent JDKs).
()
| 451 | * cannot be found (it is only to be found in fairly recent JDKs). |
| 452 | */ |
| 453 | @GwtIncompatible // java.lang.reflect |
| 454 | @Nullable |
| 455 | private static Method getSizeMethod() { |
| 456 | return getJlaMethod("getStackTraceDepth", Throwable.class); |
| 457 | } |
| 458 | |
| 459 | @GwtIncompatible // java.lang.reflect |
| 460 | @Nullable |