Package org.sonar.java
Class AnalysisWarningsWrapper
java.lang.Object
org.sonar.java.AnalysisWarningsWrapper
Wrap an
AnalysisWarnings
instance, available since SQ API 7.4.
AnalysisWarnings are not supported in SonarLint context, hence this wrapper when running in SonarLint.
The wrapper allows to avoid null check in every components which requires it.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AnalysisWarningsWrapper
Noop instance which can be used as placeholder whenAnalysisWarnings
is not supported -
Constructor Summary
ConstructorsConstructorDescriptionAnalysisWarningsWrapper
(org.sonar.api.notifications.AnalysisWarnings analysisWarnings) -
Method Summary
-
Field Details
-
NOOP_ANALYSIS_WARNINGS
Noop instance which can be used as placeholder whenAnalysisWarnings
is not supported
-
-
Constructor Details
-
AnalysisWarningsWrapper
public AnalysisWarningsWrapper(org.sonar.api.notifications.AnalysisWarnings analysisWarnings)
-
-
Method Details
-
addUnique
-