Package org.sonar.java
Class AnalysisWarningsWrapper
- java.lang.Object
-
- org.sonar.java.AnalysisWarningsWrapper
-
@ScannerSide public class AnalysisWarningsWrapper extends Object
Wrap anAnalysisWarnings
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
Fields Modifier and Type Field Description static AnalysisWarningsWrapper
NOOP_ANALYSIS_WARNINGS
Noop instance which can be used as placeholder whenAnalysisWarnings
is not supported
-
Constructor Summary
Constructors Constructor Description AnalysisWarningsWrapper(org.sonar.api.notifications.AnalysisWarnings analysisWarnings)
-
-
-
Field Detail
-
NOOP_ANALYSIS_WARNINGS
public static final AnalysisWarningsWrapper NOOP_ANALYSIS_WARNINGS
Noop instance which can be used as placeholder whenAnalysisWarnings
is not supported
-
-
Method Detail
-
addUnique
public void addUnique(String text)
-
-