diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-22 14:57:14 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-25 22:06:12 +0200 |
commit | 8c42901b547189dd3daa70572b9dd2f1e8e098b3 (patch) | |
tree | fef33971986304570e4cba9a8fdd7297cd289b0a /org.eclipse.jgit.junit | |
parent | 34fb4d487e417fea68d3c2cd1a87b75165b1aef2 (diff) | |
download | jgit-8c42901b547189dd3daa70572b9dd2f1e8e098b3.tar.gz jgit-8c42901b547189dd3daa70572b9dd2f1e8e098b3.zip |
[errorprone] MockSystemReader: fix CatchAndPrintStackTrace
See https://errorprone.info/bugpattern/CatchAndPrintStackTrace
Change-Id: If1ec66ea65eaef9311a650d8a5741a03ac76cb88
Change-Id: Ic52205bab141a4e3c6a9fefecf749f1ccfc0e491
Diffstat (limited to 'org.eclipse.jgit.junit')
-rw-r--r-- | org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java index 4dbfc59ec7..419fdb1966 100644 --- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java +++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java @@ -302,7 +302,7 @@ public class MockSystemReader extends SystemReader { field.setAccessible(true); field.set(null, null); } catch (Exception e) { - e.printStackTrace(); + throw new RuntimeException(e); } } |