adoroszlai opened a new pull request, #6410:
URL: https://github.com/apache/ozone/pull/6410

   ## What changes were proposed in this pull request?
   
   `summary.txt` for checkstyle incorrectly removes failure message that 
matches the string `xml`, e.g. unused import from `com.fasterxml.jackson`.
   
   `checkstyle-errors.xml`:
   
   ```
   <file 
name="hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/tenant/GetUserInfoHandler.java">
   <error line="20" column="8" severity="error" message="Unused import - 
com.fasterxml.jackson.databind.ObjectMapper." 
source="com.puppycrawl.tools.checkstyle.checks.imports.UnusedImportsCheck"/>
   </file>
   ```
   
   `summary.txt`:
   
   ```
   
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/tenant/GetUserInfoHandler.java
   ```
   
   The problem is that `<\?xml` matches `<xml` or `xml` instead of `<?xml` as 
intended.
   
   https://issues.apache.org/jira/browse/HDDS-10556
   
   ## How was this patch tested?
   
   Checked out 
https://github.com/ArafatKhan2198/ozone/commit/9d4b3e58077a1f6c8c5c4ecc67716e8c670098c6,
 ran checkstyle:
   
   ```
   $ ./hadoop-ozone/dev-support/checks/checkstyle.sh
   
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/tenant/GetUserInfoHandler.java
    20: Unused import - com.fasterxml.jackson.databind.ObjectMapper.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to