diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2024-04-29 00:29:30 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2024-04-29 15:20:39 +0200 |
commit | cdb43391b046cbb0d8ba008c0e038a46a8cc78d5 (patch) | |
tree | 65be06186c0c31e29186cbf532e41da8184cad7a /org.eclipse.jgit.test/tst/org/eclipse/jgit/api | |
parent | f1a9d25f40c30c8c0fc53cf1c811bde66abf11f0 (diff) | |
download | jgit-cdb43391b046cbb0d8ba008c0e038a46a8cc78d5.tar.gz jgit-cdb43391b046cbb0d8ba008c0e038a46a8cc78d5.zip |
[errorprone] Fix pattern CatchFail
See https://errorprone.info/bugpattern/CatchFail
Change-Id: If1c637a420c4e669a5bdbe4abcefc5c3a2b3a43b
Diffstat (limited to 'org.eclipse.jgit.test/tst/org/eclipse/jgit/api')
-rw-r--r-- | org.eclipse.jgit.test/tst/org/eclipse/jgit/api/RebaseCommandTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/RebaseCommandTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/RebaseCommandTest.java index 987c98e232..02e3a2e06f 100644 --- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/RebaseCommandTest.java +++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/RebaseCommandTest.java @@ -2650,7 +2650,9 @@ public class RebaseCommandTest extends RepositoryTestCase { assertEquals("1111111", firstLine.getCommit().name()); assertEquals("pick", firstLine.getAction().toToken()); } catch (Exception e) { - fail("Valid parsable RebaseTodoLine that has been commented out should allow to change the action, but failed"); + throw new AssertionError( + "Valid parsable RebaseTodoLine that has been commented out should allow to change the action, but failed", + e); } assertEquals("2222222", steps.get(1).getCommit().name()); |