Class AnalysisWarningsWrapper

java.lang.Object
org.sonar.plugins.python.warnings.AnalysisWarningsWrapper

@ScannerSide @SonarLintSide(lifespan="MULTIPLE_ANALYSES") public class AnalysisWarningsWrapper extends Object
As AnalysisWarnings has been added in SQ 7.4, previous version of the API do not have the class. Thus, in order to avoid a ClassNotFoundException at startup, we use a wrapper class we know for sure will always be present. Depending on the sonar runtime, this wrapper will either forward the warnings to the underlying AnalysisWarnings or do nothing when not available.
  • Constructor Details

    • AnalysisWarningsWrapper

      public AnalysisWarningsWrapper(@Nullable org.sonar.api.notifications.AnalysisWarnings analysisWarnings)
    • AnalysisWarningsWrapper

      public AnalysisWarningsWrapper()
  • Method Details

    • addUnique

      public void addUnique(String text)