From 64c0fb11bcf68b657c21579c61cb70ef7470a23f Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 17 Apr 2023 13:03:18 +0200 Subject: [PATCH] ListProfilesCmd: Replace System.out.println() with Print.outln() --- .../main/java/sop/cli/picocli/commands/ListProfilesCmd.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sop-java-picocli/src/main/java/sop/cli/picocli/commands/ListProfilesCmd.java b/sop-java-picocli/src/main/java/sop/cli/picocli/commands/ListProfilesCmd.java index be271e6..5b7aa4c 100644 --- a/sop-java-picocli/src/main/java/sop/cli/picocli/commands/ListProfilesCmd.java +++ b/sop-java-picocli/src/main/java/sop/cli/picocli/commands/ListProfilesCmd.java @@ -6,6 +6,7 @@ package sop.cli.picocli.commands; import picocli.CommandLine; import sop.Profile; +import sop.cli.picocli.Print; import sop.cli.picocli.SopCLI; import sop.exception.SOPGPException; import sop.operation.ListProfiles; @@ -25,9 +26,7 @@ public class ListProfilesCmd extends AbstractSopCmd { try { for (Profile profile : listProfiles.subcommand(subcommand)) { - // CHECKSTYLE:OFF - System.out.println(profile); - // CHECKSTYLE:ON + Print.outln(profile.toString()); } } catch (SOPGPException.UnsupportedProfile e) { String errorMsg = getMsg("sop.error.feature_support.subcommand_does_not_support_profiles", subcommand);