| Modifier and Type | Class and Description |
|---|---|
static class |
CodeAnnotation.Severity
Severity of the problem.
|
static class |
CodeAnnotation.Type
Type of the problem.
|
| Constructor and Description |
|---|
CodeAnnotation(String reportKey,
String externalId,
CodeAnnotation.Severity severity,
String message,
String path,
Integer line,
String link,
CodeAnnotation.Type type) |
| Modifier and Type | Method and Description |
|---|---|
String |
getExternalId()
Unique externally managed Id of the annotation.
|
Integer |
getLine()
Line number in the file from
getPath(). |
String |
getLink()
External link for the code annotation (tool report, vendor page, etc.).
|
String |
getMessage()
Message associated with this code annotation.
|
String |
getPath()
Path in the repository for the file to which the annotation applies.
|
String |
getReportKey()
Key of the
Report to which this code annotation belongs. |
CodeAnnotation.Severity |
getSeverity()
Tells how severe the problem described by this code annotation is.
|
CodeAnnotation.Type |
getType()
Tells the type of the problem described by this code annotation.
|
@Nonnull public String getReportKey()
Report to which this code annotation belongs.@Nullable public String getExternalId()
@Nonnull public CodeAnnotation.Severity getSeverity()
@Nonnull public String getPath()
@Nullable public Integer getLine()
getPath(). If not provided, the annotation applies to the entire file.@Nullable public String getLink()
@Nullable public CodeAnnotation.Type getType()
Copyright © 2020 Atlassian. All rights reserved.