|
||||||||||
| 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 java.lang.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,
java.lang.String message,
java.lang.String category,
java.lang.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,
java.lang.String message,
java.lang.String category,
java.lang.String type,
int lineNumber)
Creates a new instance of Bug. |
|
Bug(hudson.plugins.analysis.util.model.Priority priority,
java.lang.String message,
java.lang.String category,
java.lang.String type,
int start,
int end)
Creates a new instance of Bug. |
|
Bug(hudson.plugins.analysis.util.model.Priority priority,
java.lang.String message,
java.lang.String category,
java.lang.String type,
int start,
int end,
java.lang.String tooltip)
Creates a new instance of Bug. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getAgeInDays()
|
long |
getFirstSeen()
|
java.lang.String |
getMessage()
|
int |
getReviewCount()
|
java.lang.String |
getToolTip()
|
int |
hashCode()
|
boolean |
isInCloud()
|
boolean |
isNotAProblem()
|
boolean |
isShouldBeInCloud()
|
void |
setDetailsUrlTemplate(java.lang.String detailsUrl)
|
void |
setInCloud(boolean inCloud)
|
void |
setInstanceHash(java.lang.String instanceHash)
Sets the unique hash code 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, getLinkName, getModuleName, getOrigin, getPackageName, getPathName, getPrimaryLineNumber, getPriority, getShortFileName, getTempName, getType, hasPackageName, 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 java.lang.String ORIGIN
| Constructor Detail |
|---|
public Bug(hudson.plugins.analysis.util.model.Priority priority,
java.lang.String message,
java.lang.String category,
java.lang.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,
java.lang.String message,
java.lang.String category,
java.lang.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,
java.lang.String message,
java.lang.String category,
java.lang.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,
java.lang.String message,
java.lang.String category,
java.lang.String type,
int start,
int end,
java.lang.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 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(java.lang.String detailsUrl)
public java.lang.String getToolTip()
public java.lang.String getMessage()
getMessage in interface hudson.plugins.analysis.util.model.FileAnnotationgetMessage in class hudson.plugins.analysis.util.model.AbstractAnnotationpublic void setInstanceHash(java.lang.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(java.lang.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 | |||||||||