public final class FindBugsMessages extends Object
| Modifier and Type | Method and Description |
|---|---|
static FindBugsMessages |
getInstance()
Returns the singleton instance.
|
String |
getMessage(String name,
Locale locale)
Returns a HTML description for the specified bug.
|
String |
getShortMessage(String name,
Locale locale)
Returns a short description for the specified bug.
|
List<Pattern> |
parse(InputStream file)
Parses the FindBugs pattern description.
|
int |
size()
Returns the size of this messages cache.
|
public static FindBugsMessages getInstance()
public List<Pattern> parse(InputStream file) throws IOException, SAXException
file - XML file with the messagesSAXException - if we can't parse the fileIOException - if we can't read the filepublic String getMessage(String name, Locale locale)
name - name of the buglocale - the locale of the userpublic String getShortMessage(String name, Locale locale)
name - name of the buglocale - the locale of the userpublic int size()
Copyright © 2016–2018. All rights reserved.