From 551496bbc91d1cbf9a7333b4faad60b559eca7e1 Mon Sep 17 00:00:00 2001 From: Vyom-Yadav Date: Fri, 26 Aug 2022 21:16:01 +0530 Subject: [PATCH] Issue #614: Suppress UseOfSystemOutOrSystemErr IDEA violations --- .../src/main/java/com/github/checkstyle/Main.java | 4 ++++ .../main/java/com/github/checkstyle/github/NotesBuilder.java | 2 ++ 2 files changed, 6 insertions(+) diff --git a/releasenotes-builder/src/main/java/com/github/checkstyle/Main.java b/releasenotes-builder/src/main/java/com/github/checkstyle/Main.java index 394b0d59..42f3e33c 100644 --- a/releasenotes-builder/src/main/java/com/github/checkstyle/Main.java +++ b/releasenotes-builder/src/main/java/com/github/checkstyle/Main.java @@ -47,6 +47,8 @@ private Main() { * Entry point. * * @param args command line arguments. + * @noinspection UseOfSystemOutOrSystemErr + * @noinspectionreason UseOfSystemOutOrSystemErr - used for CLI output */ public static void main(String... args) { int errorCounter; @@ -122,6 +124,8 @@ private static Result runGithubNotesBuilder(CliOptions cliOptions) * Prints a list of elements in standard out. * * @param entities a list. + * @noinspection UseOfSystemOutOrSystemErr + * @noinspectionreason UseOfSystemOutOrSystemErr - used for CLI output */ private static void printListOf(List entities) { System.out.println(); diff --git a/releasenotes-builder/src/main/java/com/github/checkstyle/github/NotesBuilder.java b/releasenotes-builder/src/main/java/com/github/checkstyle/github/NotesBuilder.java index 23728ef0..c87dfa7a 100644 --- a/releasenotes-builder/src/main/java/com/github/checkstyle/github/NotesBuilder.java +++ b/releasenotes-builder/src/main/java/com/github/checkstyle/github/NotesBuilder.java @@ -91,6 +91,8 @@ private NotesBuilder() { * @return a map which represents release notes. * @throws IOException if an I/O error occurs. * @throws GitAPIException if an error occurs when accessing Git API. + * @noinspection UseOfSystemOutOrSystemErr + * @noinspectionreason UseOfSystemOutOrSystemErr - used for CLI output */ public static Result buildResult(String localRepoPath, String authToken, String remoteRepoPath, String startRef, String endRef) throws IOException,