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).
()
| 470 | */ |
| 471 | |
| 472 | @GwtIncompatible // java.lang.reflect |
| 473 | @Nullable |
| 474 | private static Method getSizeMethod() { |
| 475 | return getJlaMethod("getStackTraceDepth", Throwable.class); |
| 476 | } |
| 477 | |
| 478 | @GwtIncompatible // java.lang.reflect |
| 479 | @Nullable |