Interface ThreadSafeReportListener

  • All Known Subinterfaces:
    All Known Implementing Classes:
    AbstractAnalysisCache, FileAnalysisCache, NoopAnalysisCache

    public interface ThreadSafeReportListener
    All entry points of PMD that allowed usage of this are now deprecated. This will be replaced by another TBD mechanism in PMD 7.
    Marker interface for report listeners that, being thread-safe, need not extra synchronization. Thread-safety is required only for concurrently notifying about different files. Same file violations are guaranteed to be reported serially.
    • Method Detail

      • ruleViolationAdded

        void ruleViolationAdded​(RuleViolation ruleViolation)
        A new violation has been found.
        ruleViolation - the found violation.