From 8c42901b547189dd3daa70572b9dd2f1e8e098b3 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Fri, 22 Sep 2023 14:57:14 +0200 Subject: [errorprone] MockSystemReader: fix CatchAndPrintStackTrace See https://errorprone.info/bugpattern/CatchAndPrintStackTrace Change-Id: If1ec66ea65eaef9311a650d8a5741a03ac76cb88 Change-Id: Ic52205bab141a4e3c6a9fefecf749f1ccfc0e491 --- org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'org.eclipse.jgit.junit/src/org/eclipse') 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); } } -- cgit v1.2.3