diff --git a/apache-rat-core/src/main/java/org/apache/rat/DeprecationReporter.java b/apache-rat-core/src/main/java/org/apache/rat/DeprecationReporter.java index fe3acda18..c707c6065 100644 --- a/apache-rat-core/src/main/java/org/apache/rat/DeprecationReporter.java +++ b/apache-rat-core/src/main/java/org/apache/rat/DeprecationReporter.java @@ -42,9 +42,14 @@ private DeprecationReporter() { } /** - * The consumer that is used for deprecation reporting. + * The per-thread consumer that is used for deprecation reporting. + *

+ * Stored in a {@link ThreadLocal} so that each thread (e.g. parallel Maven + * reactor threads) gets its own reporter and does not interfere with + * reporters set by other threads. + *

*/ - private static Consumer