Javadoc nit Throwable#getStackTraceElement

David Holmes david.holmes at oracle.com
Sun Mar 22 08:37:27 UTC 2015


On 22/03/2015 9:54 AM, Bernd Eckenfels wrote:
> There is an typo in the javadoc,
>
>   * @throws IndexOutOfBoundsException if <tt>index %lt; 0 ||
>   *         index >= getStackTraceDepth() </tt>
>
> Maybe using {@code index < 0 || index > getStackTraceDepth()} would be
> better here?

Don't we index from zero to getStackTraceDepth()-1 ? So >= would be correct.

David

> Gruss
> Bernd
>



More information about the core-libs-dev mailing list