public class Bug
extends hudson.plugins.analysis.util.model.AbstractAnnotation
Note: this class has a natural ordering that is inconsistent with equals.
| Modifier and Type | Field and Description |
|---|---|
static String |
ORIGIN
Origin of the annotation.
|
| Constructor and Description |
|---|
Bug(hudson.plugins.analysis.util.model.Priority priority,
String message,
String category,
String type)
Creates a new instance of
Bug that has no associated line in code (file warning). |
Bug(hudson.plugins.analysis.util.model.Priority priority,
String message,
String category,
String type,
int lineNumber)
Creates a new instance of
Bug. |
Bug(hudson.plugins.analysis.util.model.Priority priority,
String message,
String category,
String type,
int start,
int end)
Creates a new instance of
Bug. |
Bug(hudson.plugins.analysis.util.model.Priority priority,
String message,
String category,
String type,
int start,
int end,
String tooltip)
Creates a new instance of
Bug. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getAgeInDays() |
long |
getFirstSeen() |
String |
getMessage() |
int |
getRank()
Returns the rank of this bug.
|
int |
getReviewCount() |
String |
getToolTip() |
int |
hashCode() |
boolean |
isInCloud() |
boolean |
isNotAProblem() |
boolean |
isShouldBeInCloud() |
void |
setDetailsUrlTemplate(String detailsUrl) |
void |
setInCloud(boolean inCloud) |
void |
setInstanceHash(String instanceHash)
Sets the unique hash code of this bug.
|
void |
setRank(int bugRank)
Sets the rank of this bug.
|
void |
setShouldBeInCloud(boolean shouldBeInCloud) |
addLineRange, canDisplayFile, compareTo, getAuthor, getAuthorDetails, getAuthorEmail, getAuthorName, getBuild, getCategory, getColumnEnd, getColumnStart, getCommitDetails, getCommitId, getContextHashCode, getFileName, getKey, getLineRanges, getLinkLineNumber, getLinkName, getModuleName, getOrigin, getOverridePackageCategoryName, getOverridePackageCategoryTitle, getPackageName, getPathName, getPrimaryLineNumber, getPriority, getShortFileName, getTempName, getTempName, getType, hasOverridePackageCategoryName, hasOverridePackageCategoryTitle, hasPackageName, intern, intern, isInConsoleLog, setAuthorEmail, setAuthorName, setBuild, setColumnPosition, setColumnPosition, setCommitId, setContextHashCode, setFileName, setModuleName, setOrigin, setOverridePackageCategoryName, setPackageName, setPathName, setPriority, superReadResolve, toStringpublic static final String ORIGIN
public Bug(hudson.plugins.analysis.util.model.Priority priority,
String message,
String category,
String type,
int start,
int end)
Bug.priority - the prioritymessage - the message of the warningcategory - the warning categorytype - the identifier of the warning typestart - the first line of the line rangeend - the last line of the line rangepublic Bug(hudson.plugins.analysis.util.model.Priority priority,
String message,
String category,
String type,
int lineNumber)
Bug.priority - the prioritymessage - the message of the warningcategory - the warning categorytype - the identifier of the warning typelineNumber - the line number of the warning in the corresponding filepublic Bug(hudson.plugins.analysis.util.model.Priority priority,
String message,
String category,
String type)
Bug that has no associated line in code (file warning).priority - the prioritymessage - the message of the warningcategory - the warning categorytype - the identifier of the warning typepublic Bug(hudson.plugins.analysis.util.model.Priority priority,
String message,
String category,
String type,
int start,
int end,
String tooltip)
Bug.priority - the prioritymessage - the message of the warningcategory - the warning categorytype - the identifier of the warning typestart - the first line of the line rangeend - the last line of the line rangetooltip - the tooltip to showpublic void setRank(int bugRank)
bugRank - the rank of this bugpublic int getRank()
public long getFirstSeen()
public void setInCloud(boolean inCloud)
public boolean isInCloud()
public int getAgeInDays()
public int getReviewCount()
public boolean isNotAProblem()
public void setShouldBeInCloud(boolean shouldBeInCloud)
public boolean isShouldBeInCloud()
public void setDetailsUrlTemplate(@CheckForNull String detailsUrl)
public String getToolTip()
public String getMessage()
getMessage in interface hudson.plugins.analysis.util.model.FileAnnotationgetMessage in class hudson.plugins.analysis.util.model.AbstractAnnotationpublic void setInstanceHash(String instanceHash)
instanceHash - the instance hash as generated by the FindBugs librarypublic int hashCode()
hashCode in class hudson.plugins.analysis.util.model.AbstractAnnotationpublic boolean equals(Object obj)
equals in class hudson.plugins.analysis.util.model.AbstractAnnotationCopyright © 2016–2018. All rights reserved.