On Mon, 27 Sep 2021 12:04:48 GMT, Pavel Rappo <pra...@openjdk.org> wrote:

> This PR fixes indentation in the examples in the doc comment for 
> java.lang.Throwable#printStackTrace().
> 
> 1. Indentation in stack-trace output is significant. The cause of an 
> exception is output on the same level of indentation as that of the 
> exception. A suppressed exception is output at a deeper level of indentation 
> than that of the containing exception. The last example for 
> Throwable.printStackTrace violates this.
> 
> 2. Indentation in examples for Throwable.printStackTrace that relate to 
> suppressed exceptions is inconsistent with that of cause exceptions.

This pull request has now been integrated.

Changeset: c880b87a
Author:    Pavel Rappo <pra...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk/commit/c880b87a205cc9611fe88cb29f506293dfebf946
Stats:     21 lines in 1 file changed: 0 ins; 0 del; 21 mod

8274367: Re-indent stack-trace examples for Throwable.printStackTrace

Reviewed-by: mchung, iris, darcy, bpb

-------------

PR: https://git.openjdk.java.net/jdk/pull/5715

Reply via email to