List<Row> rows = driver.select(con, columns, tables, conditions);
for (Row row : rows) {
- long catId = row.getLong(0);
+ Long catId = row.getLong(0);
String catName = row.getString(1);
BugCategory cat = getColl().getCategory(catName);
List<Row> rows = driver.select(con, columns, tables, conditions);
for (Row row: rows) {
- long bugId = row.getLong(0);
+ Long bugId = row.getLong(0);
String type = row.getString(1);
BugPattern bug = getColl().getPattern(type);
}
// Load the list of bug patterns and categories from the FindBugs messages.xml file.
- public void load(File findBugsDir, Locale locale) throws FileNotFoundException, IOException, SAXException
+ public void load(File findBugsDir, Locale locale) throws FBMsgFileNotFoundException, IOException, SAXException
{
m_findBugsDir = findBugsDir;
}
if (! msgXml.canRead()) {
- throw new FileNotFoundException(msgXml.getAbsolutePath());
+ throw new FBMsgFileNotFoundException(msgXml.getAbsolutePath());
}
parse(new InputSource(new FileInputStream(msgXml)));