added attribute to ignore a findbugs style error

Former-commit-id: 0c34765ce1e4e9825083ed8afb6cbb76e0cc73ec
This commit is contained in:
Jeremy Long
2013-06-03 20:17:07 -04:00
parent ca6cb8811e
commit 2eca1f9702

View File

@@ -111,6 +111,8 @@ public class ReportGenerator {
*
* @return a Velocity Context.
*/
@edu.umd.cs.findbugs.annotations.SuppressWarnings(value = "RV_RETURN_VALUE_IGNORED_INFERRED",
justification = "No plan to fix this style issue")
private Context createContext() {
final ToolManager manager = new ToolManager();
final Context c = manager.createContext();
@@ -196,7 +198,10 @@ public class ReportGenerator {
try {
final File outDir = new File(outFileName).getParentFile();
if (!outDir.exists()) {
outDir.mkdirs();
boolean created = outDir.mkdirs();
if (!created) {
throw new Exception("Unable to create directory '" + outDir.getAbsolutePath() + "'.");
}
}
outputStream = new FileOutputStream(outFileName);