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.

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

Commit messages:
 - Initial commit

Changes: https://git.openjdk.java.net/jdk/pull/5715/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5715&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8274367
  Stats: 21 lines in 1 file changed: 0 ins; 0 del; 21 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5715.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5715/head:pull/5715

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

Reply via email to