QiuMM commented on a change in pull request #6371: Fix issue that the 
forbidden-apis check do not always work
URL: https://github.com/apache/incubator-druid/pull/6371#discussion_r220528027
 
 

 ##########
 File path: 
services/src/main/java/org/apache/druid/cli/validate/DruidJsonValidator.java
 ##########
 @@ -69,6 +70,7 @@
     name = "validator",
     description = "Validates that a given Druid JSON object is correctly 
formatted"
 )
+@SuppressForbidden(reason = "System#out")
 
 Review comment:
   Place this annotation on the field like below not work, so I have to 
annotate the whole class.
   ```java
   @SuppressForbidden(reason = "System#out")
   private Writer logWriter = new PrintWriter(new 
OutputStreamWriter(System.out, StandardCharsets.UTF_8));
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to