diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2016-03-18 22:21:12 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2016-03-18 22:21:12 +0000 |
commit | 86fdea9d4befbd85f55a791e43a688e02aaf67c0 (patch) | |
tree | 36b010361069dce72da30b010ec9ca4b5713b811 /src/examples | |
parent | 3a8e5887b3bacb05f0d80b9af7bb268763fe155e (diff) | |
download | poi-86fdea9d4befbd85f55a791e43a688e02aaf67c0.tar.gz poi-86fdea9d4befbd85f55a791e43a688e02aaf67c0.zip |
sonar fix
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1735696 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/src/org/apache/poi/hslf/examples/Graphics2DDemo.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/examples/src/org/apache/poi/hslf/examples/Graphics2DDemo.java b/src/examples/src/org/apache/poi/hslf/examples/Graphics2DDemo.java index 565c520e6c..53cd53edc2 100644 --- a/src/examples/src/org/apache/poi/hslf/examples/Graphics2DDemo.java +++ b/src/examples/src/org/apache/poi/hslf/examples/Graphics2DDemo.java @@ -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(); + } } |