Skip to content

Commit

Permalink
checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
dlg99 committed Dec 10, 2024
1 parent 5156ac6 commit e5f4152
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import static org.mockito.Mockito.when;

import com.google.common.collect.Maps;

import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.Set;
Expand Down Expand Up @@ -248,7 +247,7 @@ void testRecoverCmdRecoverLedger(long ledgerId,
boolean removeCookies,
String... args) throws Exception {
final PrintStream oldPs = System.err;
try(ByteArrayOutputStream outContent = new ByteArrayOutputStream()) {
try (ByteArrayOutputStream outContent = new ByteArrayOutputStream()) {
System.setErr(new PrintStream(outContent));

RecoverCmd cmd = (RecoverCmd) shell.commands.get("recover");
Expand Down Expand Up @@ -337,7 +336,7 @@ void testRecoverCmdRecover(boolean dryrun,
boolean skipUnrecoverableLedgers,
String... args) throws Exception {
final PrintStream oldPs = System.err;
try(ByteArrayOutputStream outContent = new ByteArrayOutputStream()) {
try (ByteArrayOutputStream outContent = new ByteArrayOutputStream()) {
System.setErr(new PrintStream(outContent));

RecoverCmd cmd = (RecoverCmd) shell.commands.get("recover");
Expand Down

0 comments on commit e5f4152

Please sign in to comment.