From: Dominik Stadler Date: Tue, 6 Apr 2021 06:11:07 +0000 (+0000) Subject: Adjust some JavaDoc X-Git-Tag: REL_5_1_0~277 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c0cf4ebc6b6b0fa5e4d8706b1bd37c26bae5277f;p=poi.git Adjust some JavaDoc git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888419 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/examples/src/main/java/org/apache/poi/examples/hpsf/ModifyDocumentSummaryInformation.java b/examples/src/main/java/org/apache/poi/examples/hpsf/ModifyDocumentSummaryInformation.java index cf26fee949..b42b936768 100644 --- a/examples/src/main/java/org/apache/poi/examples/hpsf/ModifyDocumentSummaryInformation.java +++ b/examples/src/main/java/org/apache/poi/examples/hpsf/ModifyDocumentSummaryInformation.java @@ -63,7 +63,7 @@ import org.apache.poi.poifs.filesystem.POIFSFileSystem; * *
  • Write the POI filesystem back to the original file.

  • * - * + * */ @SuppressWarnings({"java:S106","java:S4823"}) public final class ModifyDocumentSummaryInformation { diff --git a/examples/src/main/java/org/apache/poi/examples/hssf/eventusermodel/XLS2CSVmra.java b/examples/src/main/java/org/apache/poi/examples/hssf/eventusermodel/XLS2CSVmra.java index 61764ee928..a0b393cf5b 100644 --- a/examples/src/main/java/org/apache/poi/examples/hssf/eventusermodel/XLS2CSVmra.java +++ b/examples/src/main/java/org/apache/poi/examples/hssf/eventusermodel/XLS2CSVmra.java @@ -48,7 +48,7 @@ import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.poifs.filesystem.POIFSFileSystem; /** - * A XLS -> CSV processor, that uses the MissingRecordAware + * A XLS -> CSV processor, that uses the MissingRecordAware * EventModel code to ensure it outputs all columns and rows. * @author Nick Burch */ @@ -83,7 +83,7 @@ public class XLS2CSVmra implements HSSFListener { private boolean outputNextStringRecord; /** - * Creates a new XLS -> CSV converter + * Creates a new XLS -> CSV converter * @param fs The POIFSFileSystem to process * @param output The PrintStream to output the CSV to * @param minColumns The minimum number of columns to output, or -1 for no minimum @@ -95,9 +95,11 @@ public class XLS2CSVmra implements HSSFListener { } /** - * Creates a new XLS -> CSV converter + * Creates a new XLS -> CSV converter * @param filename The file to process * @param minColumns The minimum number of columns to output, or -1 for no minimum + * + * @throws IOException if the file cannot be read or parsing the file fails */ public XLS2CSVmra(String filename, int minColumns) throws IOException { this( @@ -108,6 +110,8 @@ public class XLS2CSVmra implements HSSFListener { /** * Initiates the processing of the XLS file to CSV + * + * @throws IOException if the workbook contained errors */ public void process() throws IOException { MissingRecordAwareHSSFListener listener = new MissingRecordAwareHSSFListener(this); diff --git a/examples/src/main/java/org/apache/poi/examples/ss/CalendarDemo.java b/examples/src/main/java/org/apache/poi/examples/ss/CalendarDemo.java index 9253153f9e..ead4093ac4 100644 --- a/examples/src/main/java/org/apache/poi/examples/ss/CalendarDemo.java +++ b/examples/src/main/java/org/apache/poi/examples/ss/CalendarDemo.java @@ -43,7 +43,7 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook; * A monthly calendar created using Apache POI. Each month is on a separate sheet. *
      * Usage:
    - * CalendarDemo -xls|xlsx 
    + * CalendarDemo -xls|xlsx <year>
      * 
    * * @author Yegor Kozlov diff --git a/examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java b/examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java index 91a603f676..1c39838cd3 100644 --- a/examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java +++ b/examples/src/main/java/org/apache/poi/examples/ss/ToCSV.java @@ -40,7 +40,7 @@ import org.apache.poi.ss.usermodel.WorkbookFactory; /** * Demonstrates one way to convert an Excel spreadsheet into a CSV * file. This class makes the following assumptions; - * + * * Therefore, if the worksheet looked like this; * *
    diff --git a/examples/src/main/java/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java b/examples/src/main/java/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java
    index 81235f0ef5..a9772b00ba 100644
    --- a/examples/src/main/java/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java
    +++ b/examples/src/main/java/org/apache/poi/examples/xssf/eventusermodel/XLSX2CSV.java
    @@ -46,7 +46,7 @@ import org.xml.sax.SAXException;
     import org.xml.sax.XMLReader;
     
     /**
    - * A rudimentary XLSX -> CSV processor modeled on the
    + * A rudimentary XLSX -> CSV processor modeled on the
      * POI sample program XLS2CSVmra from the package
      * org.apache.poi.hssf.eventusermodel.examples.
      * As with the HSSF version, this tries to spot missing
    @@ -171,7 +171,7 @@ public class XLSX2CSV {
         private final PrintStream output;
     
         /**
    -     * Creates a new XLSX -> CSV examples
    +     * Creates a new XLSX -> CSV examples
          *
          * @param pkg        The XLSX package to process
          * @param output     The PrintStream to output the CSV to
    diff --git a/examples/src/main/java/org/apache/poi/examples/xssf/usermodel/CalendarDemo.java b/examples/src/main/java/org/apache/poi/examples/xssf/usermodel/CalendarDemo.java
    index 28f2c48f27..fa06960bfc 100644
    --- a/examples/src/main/java/org/apache/poi/examples/xssf/usermodel/CalendarDemo.java
    +++ b/examples/src/main/java/org/apache/poi/examples/xssf/usermodel/CalendarDemo.java
    @@ -45,7 +45,7 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
      *
      * 
      * Usage:
    - * CalendarDemo 
    + * CalendarDemo <year>
      * 
    * * @author Yegor Kozlov diff --git a/examples/src/main/java/org/apache/poi/examples/xssf/usermodel/LoadPasswordProtectedXlsx.java b/examples/src/main/java/org/apache/poi/examples/xssf/usermodel/LoadPasswordProtectedXlsx.java index 6e376f0f56..1ca5c34307 100644 --- a/examples/src/main/java/org/apache/poi/examples/xssf/usermodel/LoadPasswordProtectedXlsx.java +++ b/examples/src/main/java/org/apache/poi/examples/xssf/usermodel/LoadPasswordProtectedXlsx.java @@ -35,7 +35,7 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook; *

      *
    • The example demonstrates that all temp files are removed. *
    • AesZipFileZipEntrySource is used to ensure that temp files are encrypted. - *

    + *

    */ @SuppressWarnings({"java:S106","java:S4823","java:S1192"}) public final class LoadPasswordProtectedXlsx {