sonar fix
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735696 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
488ce5fec3
commit
87f4e8fa63
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user