From 12ab1c3f9762c5c6b233328bc38ea81412d6d82c Mon Sep 17 00:00:00 2001 From: Vyom-Yadav Date: Fri, 26 Aug 2022 14:32:43 +0530 Subject: [PATCH] Issue #614: Suppress UseOfSystemOutOrSystemErr IDEA violations --- .../src/main/java/com/github/checkstyle/Main.java | 2 ++ .../main/java/com/github/checkstyle/github/NotesBuilder.java | 1 + 2 files changed, 3 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 394b0d590..78b6c321a 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,7 @@ private Main() { * Entry point. * * @param args command line arguments. + * @noinspection UseOfSystemOutOrSystemErr */ public static void main(String... args) { int errorCounter; @@ -122,6 +123,7 @@ private static Result runGithubNotesBuilder(CliOptions cliOptions) * Prints a list of elements in standard out. * * @param entities a list. + * @noinspection UseOfSystemOutOrSystemErr */ 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 23728ef0c..365ae2e10 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,7 @@ 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 */ public static Result buildResult(String localRepoPath, String authToken, String remoteRepoPath, String startRef, String endRef) throws IOException,