poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abea...@apache.org
Subject svn commit: r1875902 - in /poi/trunk/src/examples/src/org/apache/poi: xslf/usermodel/ xslf/usermodel/tutorial/ xssf/usermodel/examples/ xwpf/usermodel/examples/
Date Tue, 31 Mar 2020 01:16:39 GMT
Author: abearez
Date: Tue Mar 31 01:16:39 2020
New Revision: 1875902

URL: http://svn.apache.org/viewvc?rev=1875902&view=rev
Log:
Sonar Fixes - public final class with private constructor for examples

Modified:
    poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/DataExtraction.java
    poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/MergePresentations.java
    poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/PieChartDemo.java
    poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial1.java
    poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial2.java
    poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial3.java
    poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial4.java
    poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial5.java
    poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial6.java
    poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial7.java
    poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/tutorial/Step1.java
    poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/tutorial/Step2.java
    poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/BarChart.java
    poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/ExcelChartWithTargetLine.java
    poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/LineChart.java
    poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/ScatterChart.java
    poi/trunk/src/examples/src/org/apache/poi/xwpf/usermodel/examples/BarChartExample.java

Modified: poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/DataExtraction.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/DataExtraction.java?rev=1875902&r1=1875901&r2=1875902&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/DataExtraction.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/DataExtraction.java Tue Mar 31
01:16:39 2020
@@ -32,6 +32,7 @@ import org.apache.poi.openxml4j.opc.Pack
  * Demonstrates how you can extract data from a .pptx file
  */
 public final class DataExtraction {
+    private DataExtraction() {}
 
     public static void main(String[] args) throws IOException, OpenXML4JException {
 

Modified: poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/MergePresentations.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/MergePresentations.java?rev=1875902&r1=1875901&r2=1875902&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/MergePresentations.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/MergePresentations.java Tue Mar
31 01:16:39 2020
@@ -26,6 +26,7 @@ import java.io.FileOutputStream;
  * Merge multiple pptx presentations together
  */
 public final class MergePresentations {
+    private MergePresentations() {}
 
     public static void main(String[] args) throws Exception {
         try (XMLSlideShow ppt = new XMLSlideShow()) {

Modified: poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/PieChartDemo.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/PieChartDemo.java?rev=1875902&r1=1875901&r2=1875902&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/PieChartDemo.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/PieChartDemo.java Tue Mar 31
01:16:39 2020
@@ -38,7 +38,9 @@ import org.apache.poi.xddf.usermodel.cha
 /**
  * Build a pie chart from a template pptx
  */
-public class PieChartDemo {
+public final class PieChartDemo {
+    private PieChartDemo() {}
+
     private static void usage(){
         System.out.println("Usage: PieChartDemo <pie-chart-template.pptx> <pie-chart-data.txt>");
         System.out.println("    pie-chart-template.pptx     template with a pie chart");

Modified: poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial1.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial1.java?rev=1875902&r1=1875901&r2=1875902&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial1.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial1.java Tue Mar 31 01:16:39
2020
@@ -26,7 +26,8 @@ import java.io.IOException;
  * Demonstrates how to create slides with predefined layout
  * and fill the placeholder shapes
  */
-public class Tutorial1 {
+public final class Tutorial1 {
+    private Tutorial1() {}
 
     public static void main(String[] args) throws IOException{
         try (XMLSlideShow ppt = new XMLSlideShow()) {

Modified: poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial2.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial2.java?rev=1875902&r1=1875901&r2=1875902&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial2.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial2.java Tue Mar 31 01:16:39
2020
@@ -27,7 +27,8 @@ import java.io.IOException;
 /**
  * Basic paragraph and text formatting
  */
-public class Tutorial2 {
+public final class Tutorial2 {
+    private Tutorial2() {}
 
     public static void main(String[] args) throws IOException{
         try (XMLSlideShow ppt = new XMLSlideShow()) {

Modified: poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial3.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial3.java?rev=1875902&r1=1875901&r2=1875902&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial3.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial3.java Tue Mar 31 01:16:39
2020
@@ -28,7 +28,8 @@ import org.apache.poi.sl.usermodel.Place
 /**
  * How to set slide title
  */
-public class Tutorial3 {
+public final class Tutorial3 {
+    private Tutorial3() {}
 
     public static void main(String[] args) throws IOException{
         try (XMLSlideShow ppt = new XMLSlideShow()) {

Modified: poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial4.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial4.java?rev=1875902&r1=1875901&r2=1875902&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial4.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial4.java Tue Mar 31 01:16:39
2020
@@ -30,7 +30,8 @@ import org.apache.poi.sl.usermodel.TextP
 /**
  * PPTX Tables
  */
-public class Tutorial4 {
+public final class Tutorial4 {
+    private Tutorial4() {}
 
     public static void main(String[] args) throws IOException{
         try (XMLSlideShow ppt = new XMLSlideShow()) {

Modified: poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial5.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial5.java?rev=1875902&r1=1875901&r2=1875902&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial5.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial5.java Tue Mar 31 01:16:39
2020
@@ -28,7 +28,8 @@ import org.apache.poi.sl.usermodel.Pictu
 /**
  * Images
  */
-public class Tutorial5 {
+public final class Tutorial5 {
+    private Tutorial5() {}
 
     public static void main(String[] args) throws IOException{
         try (XMLSlideShow ppt = new XMLSlideShow()) {

Modified: poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial6.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial6.java?rev=1875902&r1=1875901&r2=1875902&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial6.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial6.java Tue Mar 31 01:16:39
2020
@@ -26,7 +26,8 @@ import java.io.IOException;
 /**
  * Hyperlinks
  */
-public class Tutorial6 {
+public final class Tutorial6 {
+    private Tutorial6() {}
 
     public static void main(String[] args) throws IOException{
         try (XMLSlideShow ppt = new XMLSlideShow()) {

Modified: poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial7.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial7.java?rev=1875902&r1=1875901&r2=1875902&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial7.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/Tutorial7.java Tue Mar 31 01:16:39
2020
@@ -29,7 +29,8 @@ import org.apache.poi.sl.usermodel.AutoN
 /**
  * Bullets and numbering
  */
-public class Tutorial7 {
+public final class Tutorial7 {
+    private Tutorial7() {}
 
     public static void main(String[] args) throws IOException {
         try (XMLSlideShow ppt = new XMLSlideShow()) {

Modified: poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/tutorial/Step1.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/tutorial/Step1.java?rev=1875902&r1=1875901&r2=1875902&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/tutorial/Step1.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/tutorial/Step1.java Tue Mar 31
01:16:39 2020
@@ -31,7 +31,8 @@ import org.apache.poi.xslf.usermodel.XSL
 /**
  * Reading a .pptx presentation and printing basic shape properties
  */
-public class Step1 {
+public final class Step1 {
+    private Step1() {}
 
     public static void main(String[] args) throws Exception {
         if(args.length == 0)  {

Modified: poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/tutorial/Step2.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/tutorial/Step2.java?rev=1875902&r1=1875901&r2=1875902&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/tutorial/Step2.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xslf/usermodel/tutorial/Step2.java Tue Mar 31
01:16:39 2020
@@ -31,7 +31,9 @@ import java.io.FileOutputStream;
 /**
  * Create slides from pre-defined slide layouts
  */
-public class Step2 {
+public final class Step2 {
+    private Step2() {}
+
     public static void main(String[] args) throws Exception{
         try (XMLSlideShow ppt = new XMLSlideShow()) {
 

Modified: poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/BarChart.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/BarChart.java?rev=1875902&r1=1875901&r2=1875902&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/BarChart.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/BarChart.java Tue Mar
31 01:16:39 2020
@@ -48,7 +48,8 @@ import org.apache.poi.xssf.usermodel.XSS
 /**
  * Line chart example.
  */
-public class BarChart {
+public final class BarChart {
+    private BarChart() {}
 
     public static void main(String[] args) throws IOException {
         try (XSSFWorkbook wb = new XSSFWorkbook()) {

Modified: poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/ExcelChartWithTargetLine.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/ExcelChartWithTargetLine.java?rev=1875902&r1=1875901&r2=1875902&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/ExcelChartWithTargetLine.java
(original)
+++ poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/ExcelChartWithTargetLine.java
Tue Mar 31 01:16:39 2020
@@ -62,7 +62,8 @@ import org.apache.poi.xssf.usermodel.XSS
  * @see <a href="https://stackoverflow.com/questions/50873700/">Change axis color and
font of the chart in openxmlformats</a>
  * @see <a href="https://stackoverflow.com/questions/51530552/">Change colors of line
chart Apache POI</a>
  */
-class ExcelChartWithTargetLine {
+public final class ExcelChartWithTargetLine {
+    private ExcelChartWithTargetLine() {}
 
     private static final int NUM_OF_ROWS = 6;
 

Modified: poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/LineChart.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/LineChart.java?rev=1875902&r1=1875901&r2=1875902&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/LineChart.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/LineChart.java Tue Mar
31 01:16:39 2020
@@ -49,7 +49,8 @@ import org.apache.poi.xssf.usermodel.XSS
 /**
  * Line chart example.
  */
-public class LineChart {
+public final class LineChart {
+    private LineChart() {}
 
     public static void main(String[] args) throws IOException {
         try (XSSFWorkbook wb = new XSSFWorkbook()) {

Modified: poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/ScatterChart.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/ScatterChart.java?rev=1875902&r1=1875901&r2=1875902&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/ScatterChart.java (original)
+++ poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/ScatterChart.java Tue
Mar 31 01:16:39 2020
@@ -50,7 +50,8 @@ import org.apache.poi.xssf.usermodel.XSS
 /**
  * Illustrates how to create a simple scatter chart.
  */
-public class ScatterChart {
+public final class ScatterChart {
+    private ScatterChart() {}
 
     public static void main(String[] args) throws IOException {
         try (XSSFWorkbook wb = new XSSFWorkbook()) {

Modified: poi/trunk/src/examples/src/org/apache/poi/xwpf/usermodel/examples/BarChartExample.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/examples/src/org/apache/poi/xwpf/usermodel/examples/BarChartExample.java?rev=1875902&r1=1875901&r2=1875902&view=diff
==============================================================================
--- poi/trunk/src/examples/src/org/apache/poi/xwpf/usermodel/examples/BarChartExample.java
(original)
+++ poi/trunk/src/examples/src/org/apache/poi/xwpf/usermodel/examples/BarChartExample.java
Tue Mar 31 01:16:39 2020
@@ -43,7 +43,9 @@ import org.apache.poi.xwpf.usermodel.XWP
 /**
  * Build a bar chart from a template docx
  */
-public class BarChartExample {
+public final class BarChartExample {
+    private BarChartExample() {}
+
     private static void usage(){
         System.out.println("Usage: BarChartExample <bar-chart-template.docx> <bar-chart-data.txt>");
         System.out.println("    bar-chart-template.docx     template with a bar chart");



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message