Browse Source

CheckoutCommandTest: Add comment to document intentionally empty catch block

Change-Id: I5156c3c2de67be015ef1d785fcf6084919765635
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
stable-5.4
David Pursehouse 6 years ago
parent
commit
6df350ee0e
  1. 1
      org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CheckoutCommandTest.java

1
org.eclipse.jgit.test/tst/org/eclipse/jgit/api/CheckoutCommandTest.java

@ -145,6 +145,7 @@ public class CheckoutCommandTest extends RepositoryTestCase {
git.checkout().setName("master").call().getObjectId(); git.checkout().setName("master").call().getObjectId();
fail("Expected CheckoutConflictException didn't occur"); fail("Expected CheckoutConflictException didn't occur");
} catch (CheckoutConflictException e) { } catch (CheckoutConflictException e) {
// Expected
} }
assertEquals(initialCommit.getId(), git.checkout().setName("master") assertEquals(initialCommit.getId(), git.checkout().setName("master")
.setForced(true).call().getObjectId()); .setForced(true).call().getObjectId());

Loading…
Cancel
Save