sonar fix

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735696 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2016-03-18 22:21:12 +00:00
parent 488ce5fec3
commit 87f4e8fa63
2 changed files with 7 additions and 6 deletions

View File

@ -43,10 +43,10 @@ public final class Graphics2DDemo {
//bar chart data. The first value is the bar color, the second is the width
Object[] def = new Object[]{
Color.yellow, new Integer(40),
Color.green, new Integer(60),
Color.gray, new Integer(30),
Color.red, new Integer(80),
Color.yellow, 40,
Color.green, 60,
Color.gray, 30,
Color.red, 80,
};
HSLFSlide slide = ppt.createSlide();
@ -79,6 +79,7 @@ public final class Graphics2DDemo {
FileOutputStream out = new FileOutputStream("hslf-graphics.ppt");
ppt.write(out);
out.close();
}
ppt.close();
}
}

View File

@ -59,7 +59,7 @@ public final class ErrorEval implements ValueEval {
if (eval != null) {
return eval;
} else {
throw new RuntimeException("Unhandled error type " + eval + " for code " + errorCode);
throw new RuntimeException("Unhandled error type for code " + errorCode);
}
}