]> source.dussan.org Git - jgit.git/commit
[errorprone] MyersDiff#main: fix CatchAndPrintStackTrace 64/204564/6
authorMatthias Sohn <matthias.sohn@sap.com>
Thu, 21 Sep 2023 10:22:24 +0000 (12:22 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 25 Sep 2023 14:15:35 +0000 (16:15 +0200)
commite6c808600d1069d0dd968e5b94533c5f29443d09
tree13633ed78ba5367412c18962b6c17c5bbf2b217b
parent2d16df1a07d72d32bb7981fc521ad8fe0b8791c6
[errorprone] MyersDiff#main: fix CatchAndPrintStackTrace

Use a PrintWriter similarly like Main#run of org.eclipse.jgit.pgm does.

See https://errorprone.info/bugpattern/CatchAndPrintStackTrace

Change-Id: I8ee34da53d94ddb72b73ae86bfebc3b7f0a3dc04
org.eclipse.jgit/src/org/eclipse/jgit/diff/MyersDiff.java