Package edu.umd.cs.findbugs.cwe
Class WeaknessCatalog
java.lang.Object
edu.umd.cs.findbugs.cwe.WeaknessCatalog
The weakness catalog contains a number of weaknesses
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private static WeaknessCatalog
private static final org.slf4j.Logger
private String
private LocalDate
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WeaknessCatalog
getName()
getWeaknessByCweIdOrNull
(int cweid) Get the a weakness by CWE IDprivate static void
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
version
-
name
-
releaseDate
-
FILE_NAME
- See Also:
-
weaknesses
-
INSTANCE
-
-
Constructor Details
-
WeaknessCatalog
private WeaknessCatalog()
-
-
Method Details
-
getInstance
- Returns:
- a weakness catalog instance
-
loadFileAndInitialize
private static void loadFileAndInitialize() -
getVersion
- Returns:
- CWE Version
-
getName
- Returns:
- name of the weakness catalog (usually: CWE)
-
getReleaseDate
- Returns:
- the release date of the CWE version
-
getWeaknessByCweIdOrNull
Get the a weakness by CWE ID- Parameters:
cweid
- the CWE ID of the weakness- Returns:
- a copy of the weakness or null
-