|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.analysis.util.model.AbstractAnnotation
hudson.plugins.findbugs.parser.Bug
public class Bug
A serializable Java Bean class representing a warning.
Note: this class has a natural ordering that is inconsistent with equals.
| Field Summary | |
|---|---|
static String |
ORIGIN
Origin of the annotation. |
| Fields inherited from class hudson.plugins.analysis.util.model.AbstractAnnotation |
|---|
WORKSPACE_FILES |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class hudson.plugins.analysis.util.model.AbstractAnnotation |
|---|
addLineRange, canDisplayFile, compareTo, getCategory, getContextHashCode, getFileName, getKey, getLineRanges, getLinkLineNumber, getLinkName, getModuleName, getOrigin, getPackageName, getPathName, getPrimaryLineNumber, getPriority, getShortFileName, getTempName, getType, hasPackageName, setColumnPosition, setContextHashCode, setFileName, setModuleName, setOrigin, setPackageName, setPathName, setPriority, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ORIGIN
| Constructor Detail |
|---|
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 range
public 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 file
public 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 type
public 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 show| Method Detail |
|---|
public 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.AbstractAnnotation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||