From commits-return-63589-archive-asf-public=cust-asf.ponee.io@activemq.apache.org Fri Jun 11 14:54:53 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id B8C0A180654 for ; Fri, 11 Jun 2021 16:54:52 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id E38903EDAA for ; Fri, 11 Jun 2021 14:54:51 +0000 (UTC) Received: (qmail 48491 invoked by uid 500); 11 Jun 2021 14:54:51 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 48482 invoked by uid 99); 11 Jun 2021 14:54:51 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jun 2021 14:54:51 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 6030181A86; Fri, 11 Jun 2021 14:54:51 +0000 (UTC) Date: Fri, 11 Jun 2021 14:54:51 +0000 To: "commits@activemq.apache.org" Subject: [activemq-artemis] branch main updated: NO-JIRA Small tweaks on PrintData.java MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <162342329109.10196.7707613780643802320@gitbox.apache.org> From: clebertsuconic@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: activemq-artemis X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Oldrev: a4c1155a013b015f53faca9f3558a081a1707491 X-Git-Newrev: bff242bba738b6f1d9a2fa5bdb223ffee4889be3 X-Git-Rev: bff242bba738b6f1d9a2fa5bdb223ffee4889be3 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. clebertsuconic pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git The following commit(s) were added to refs/heads/main by this push: new bff242b NO-JIRA Small tweaks on PrintData.java bff242b is described below commit bff242bba738b6f1d9a2fa5bdb223ffee4889be3 Author: Clebert Suconic AuthorDate: Fri Jun 11 10:52:51 2021 -0400 NO-JIRA Small tweaks on PrintData.java --- .../org/apache/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 e17e5b9..25df90a 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;