Package edu.umd.cs.findbugs
Class BugCode
java.lang.Object
edu.umd.cs.findbugs.BugCode
- All Implemented Interfaces:
Comparable<BugCode>
A BugCode is an abbreviation that is shared among some number of BugPatterns.
For example, the code "HE" is shared by all of the BugPatterns that represent
hashcode/equals violations.
- Author:
- David Hovemeyer
- See Also:
-
Constructor Details
-
BugCode
Constructor.- Parameters:
abbrev
- the abbreviation for the bug codedescription
- a short textual description of the class of bug pattern represented by this bug code
-
BugCode
-
-
Method Details
-
getAbbrev
Get the abbreviation for this bug code. -
getDescription
Get the short textual description of the bug code. -
toString
Get the abbreviation fo this bug code. -
getCWEid
public int getCWEid()- Returns:
- Returns the cweid.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<BugCode>
-
equals
-
hashCode
public int hashCode()
-