From bff242bba738b6f1d9a2fa5bdb223ffee4889be3 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Fri, 11 Jun 2021 10:52:51 -0400 Subject: [PATCH] NO-JIRA Small tweaks on PrintData.java --- .../activemq/artemis/cli/commands/tools/PrintData.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/PrintData.java b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/PrintData.java index e17e5b931c..25df90a442 100644 --- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/PrintData.java +++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/tools/PrintData.java @@ -149,8 +149,9 @@ public class PrintData extends DBOption { DescribeJournal describeJournal = null; describeJournal = printMessages(messagesDirectory, out, safe, true, true, reclaimed); - if (describeJournal == null) + if (describeJournal == null) { return; + } try { printBanner(out, "P A G I N G"); @@ -163,10 +164,10 @@ public class PrintData extends DBOption { } - public static DescribeJournal printMessages(File messagesDirectory, PrintStream out, boolean safe, boolean printRecords, boolean printSurving, boolean reclaimed) { + public static DescribeJournal printMessages(File messagesDirectory, PrintStream out, boolean safe, boolean printRecords, boolean printSurviving, boolean reclaimed) { DescribeJournal describeJournal; try { - describeJournal = DescribeJournal.describeMessagesJournal(messagesDirectory, out, safe, printRecords, printSurving, reclaimed); + describeJournal = DescribeJournal.describeMessagesJournal(messagesDirectory, out, safe, printRecords, printSurviving, reclaimed); } catch (Exception e) { e.printStackTrace(); return null;