aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2020-03-29 22:37:23 +0000
committerAndreas Beeker <kiwiwings@apache.org>2020-03-29 22:37:23 +0000
commita850690d7c3d019064548df43b8301e3f729d7a7 (patch)
tree084e741ec86117d6146cd93a66c4b60268d37150 /src/examples
parentce544b85503b695eff0ceb96d67e239962bcb06c (diff)
downloadpoi-a850690d7c3d019064548df43b8301e3f729d7a7.tar.gz
poi-a850690d7c3d019064548df43b8301e3f729d7a7.zip
Sonar Fixes
- name clashes with constants - missing break in switch statements git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1875863 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/src/org/apache/poi/xssf/usermodel/examples/BarAndLineChart.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/examples/src/org/apache/poi/xssf/usermodel/examples/BarAndLineChart.java b/src/examples/src/org/apache/poi/xssf/usermodel/examples/BarAndLineChart.java
index dea851a9d0..2ad12a3683 100644
--- a/src/examples/src/org/apache/poi/xssf/usermodel/examples/BarAndLineChart.java
+++ b/src/examples/src/org/apache/poi/xssf/usermodel/examples/BarAndLineChart.java
@@ -62,10 +62,13 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
// additional title formatting from https://stackoverflow.com/questions/50418856
// and legend positioning from https://stackoverflow.com/questions/49615379
// this would probably be an answer for https://stackoverflow.com/questions/36447925 too
-public class BarAndLineChart {
+public final class BarAndLineChart {
+
private static final int NUM_OF_ROWS = 7;
private static final Random RNG = new Random();
+ private BarAndLineChart() {}
+
public static void main(String[] args) throws Exception {
try (XSSFWorkbook wb = new XSSFWorkbook()) {
XSSFSheet sheet = wb.createSheet("Sheet1");