desruisseaux commented on code in PR #1160:
URL:
https://github.com/apache/maven-compiler-plugin/pull/1160#discussion_r4228362850
##########
src/main/java/org/apache/maven/plugin/compiler/DiagnosticLogger.java:
##########
@@ -69,6 +71,9 @@ final class DiagnosticLogger implements
DiagnosticListener<JavaFileObject> {
*/
private final Map<String, Integer> codeCount;
+ /** Diagnostic codes for which a formatting failure was already logged. */
+ private final Set<String> loggedFormattingFailures = new HashSet<>();
Review Comment:
Move `new HashSet<>()` in the constructor for consistency with the
initialization of other fields.
--
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]