Changeset 36092 in osm


Ignore:
Timestamp:
2023-05-30T22:06:15+02:00 (11 months ago)
Author:
stoecker
Message:

fix warnings

Location:
applications/editors/josm/plugins/opendata
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/record/common/FeatFormulaErr2.java

    r28000 r36092  
    2525 * Title: FeatFormulaErr2 (Formula Evaluation Shared Feature) common record part
    2626 * <P>
    27  * This record part specifies Formula Evaluation & Error Ignoring data
     27 * This record part specifies Formula Evaluation &amp; Error Ignoring data
    2828 *  for a sheet, stored as part of a Shared Feature. It can be found in
    2929 *  records such as {@link FeatRecord}.
  • applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/record/formula/LessThanPtg.java

    r28000 r36092  
    1919
    2020/**
    21  * Less than operator PTG "<". The SID is taken from the
     21 * Less than operator PTG "&lt;". The SID is taken from the
    2222 * Openoffice.orgs Documentation of the Excel File Format,
    2323 * Table 3.5.7
  • applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/usermodel/HSSFDataFormat.java

    r30737 r36092  
    4040 * with a prefix "[$-xxx]" (where xxx is a 1-7 digit hexadecimal number).
    4141 * See the Microsoft article
    42  * <a href="http://office.microsoft.com/assistance/hfws.aspx?AssetID=HA010346351033&CTT=6&Origin=EC010272491033">
     42 * <a href="http://office.microsoft.com/assistance/hfws.aspx?AssetID=HA010346351033&amp;CTT=6&amp;Origin=EC010272491033">
    4343 *   Creating international number formats
    4444 * </a> for more details on these codes.
  • applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/usermodel/HSSFRow.java

    r34072 r36092  
    9595     *
    9696     * @return HSSFCell a high level representation of the created cell.
    97      * @throws IllegalArgumentException if columnIndex < 0 or greater than 255,
     97     * @throws IllegalArgumentException if columnIndex &lt; 0 or greater than 255,
    9898     *   the maximum number of columns supported by the Excel binary format (.xls)
    9999     */
     
    113113     *
    114114     * @return HSSFCell a high level representation of the created cell.
    115      * @throws IllegalArgumentException if columnIndex < 0 or greater than 255,
     115     * @throws IllegalArgumentException if columnIndex &lt; 0 or greater than 255,
    116116     *   the maximum number of columns supported by the Excel binary format (.xls)
    117117     */
  • applications/editors/josm/plugins/opendata/includes/org/apache/poi/hssf/usermodel/HSSFWorkbook.java

    r30737 r36092  
    299299    /**
    300300     * Get the HSSFSheet object at the given index.
    301      * @param index of the sheet number (0-based physical & logical)
     301     * @param index of the sheet number (0-based physical &amp; logical)
    302302     * @return HSSFSheet at the provided index
    303303     */
  • applications/editors/josm/plugins/opendata/includes/org/apache/poi/poifs/filesystem/POIFSDocumentPath.java

    r28000 r36092  
    167167     * @return the nth component;
    168168     *
    169      * @exception ArrayIndexOutOfBoundsException if n < 0 or n >=
     169     * @exception ArrayIndexOutOfBoundsException if n &lt; 0 or n &gt;=
    170170     *                                           length()
    171171     */
  • applications/editors/josm/plugins/opendata/includes/org/apache/poi/poifs/property/DirectoryProperty.java

    r30737 r36092  
    116116         * @param o2 second object to compare, better be a Property
    117117         *
    118          * @return negative value if o1 <  o2,
     118         * @return negative value if o1 &lt;  o2,
    119119         *         zero           if o1 == o2,
    120          *         positive value if o1 >  o2.
     120         *         positive value if o1 &gt;  o2.
    121121         */
    122122        public int compare(Property o1, Property o2)
  • applications/editors/josm/plugins/opendata/includes/org/apache/poi/ss/formula/Formula.java

    r28000 r36092  
    144144         * The return value is usually not the same as the location of the cell containing this formula.
    145145         *
    146          * @return the firstRow & firstColumn of an array formula or shared formula that this formula
     146         * @return the firstRow &amp; firstColumn of an array formula or shared formula that this formula
    147147         * belongs to.  <code>null</code> if this formula is not part of an array or shared formula.
    148148         */
  • applications/editors/josm/plugins/opendata/includes/org/apache/poi/ss/usermodel/Row.java

    r34072 r36092  
    3131     * @param column - the column number this cell represents
    3232     * @return Cell a high level representation of the created cell.
    33      * @throws IllegalArgumentException if columnIndex < 0 or greater than the maximum number of supported columns
     33     * @throws IllegalArgumentException if columnIndex &lt; 0 or greater than the maximum number of supported columns
    3434     * (255 for *.xls, 1048576 for *.xlsx)
    3535     */
     
    4444     * @param column - the column number this cell represents
    4545     * @return Cell a high level representation of the created cell.
    46      * @throws IllegalArgumentException if columnIndex < 0 or greate than a maximum number of supported columns
     46     * @throws IllegalArgumentException if columnIndex &lt; 0 or greate than a maximum number of supported columns
    4747     * (255 for *.xls, 1048576 for *.xlsx)
    4848     */
     
    5353     *
    5454     * @param rowNum  the row number (0-based)
    55      * @throws IllegalArgumentException if rowNum < 0
     55     * @throws IllegalArgumentException if rowNum &lt; 0
    5656     */
    5757    void setRowNum(int rowNum);
     
    7878     *
    7979     * @return the cell at the given (0 based) index
    80      * @throws IllegalArgumentException if cellnum < 0 or the specified MissingCellPolicy is invalid
     80     * @throws IllegalArgumentException if cellnum &lt; 0 or the specified MissingCellPolicy is invalid
    8181     * @see Row#RETURN_NULL_AND_BLANK
    8282     * @see Row#RETURN_BLANK_AS_NULL
  • applications/editors/josm/plugins/opendata/includes/org/apache/poi/ss/usermodel/Workbook.java

    r28000 r36092  
    3131     * Get the Sheet object at the given index.
    3232     *
    33      * @param index of the sheet number (0-based physical & logical)
     33     * @param index of the sheet number (0-based physical &amp; logical)
    3434     * @return Sheet at the provided index
    3535     */
  • applications/editors/josm/plugins/opendata/includes/org/apache/poi/util/IntList.java

    r28000 r36092  
    185185     *
    186186     * @exception IndexOutOfBoundsException if the index is out of
    187      *            range (index < 0 || index >= size()).
     187     *            range (index &lt; 0 || index &gt;= size()).
    188188     */
    189189
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/be/BelgianDataSetHandler.java

    r36072 r36092  
    3535
    3636    protected class InternalCsvHandler extends DefaultCsvHandler {
    37         /*@Override
    38         public List<Projection> getSpreadSheetProjections() {
    39             if (singleProjection != null) {
    40                 return Arrays.asList(new Projection[]{singleProjection});
    41             } else {
    42                 return Arrays.asList(projections);
    43             }
    44         }*/
    45 
    4637        @Override
    4738        public LatLon getCoor(EastNorth en, String[] fields) {
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/datasets/fr/FrenchDataSetHandler.java

    r36072 r36092  
    4848
    4949    protected class InternalCsvHandler extends DefaultCsvHandler {
    50         /*@Override
    51         public List<Projection> getSpreadSheetProjections() {
    52             if (singleProjection != null) {
    53                 return Arrays.asList(new Projection[]{singleProjection});
    54             } else {
    55                 return Arrays.asList(projections);
    56             }
    57         }*/
    58 
    5950        @Override
    6051        public LatLon getCoor(EastNorth en, String[] fields) {
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/archive/CandidateChooser.java

    r36072 r36092  
    6767    }
    6868
    69     /*public List<File> getSelectedFiles() {
    70         List<File> result = new ArrayList<File>();
    71         for (JCheckBox cbox : checkBoxes.keySet()) {
    72             if (cbox.isSelected()) {
    73                 result.add(checkBoxes.get(cbox));
    74             }
    75         }
    76         return result;
    77     }*/
    78 
    7969    public File getSelectedFile() {
    8070        return (File) fileCombo.getSelectedItem();
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/MifReader.java

    r36072 r36092  
    6868
    6969    private Projection josmProj;
    70     private DataSet ds;
     70    private DataSet dataSet;
    7171    private Relation region;
    7272    private Way polygon;
     
    381381
    382382    private void parseData(String[] words) {
    383         if (ds == null) {
    384             ds = new DataSet();
     383        if (dataSet == null) {
     384            dataSet = new DataSet();
    385385        }
    386386    }
     
    392392    private void parseLine(String[] words) throws IOException {
    393393        Way line = new Way();
    394         ds.addPrimitive(line);
     394        dataSet.addPrimitive(line);
    395395        readAttributes(line);
    396396        line.addNode(createNode(words[1], words[2]));
     
    401401        Way previousPolyline = polyline;
    402402        polyline = new Way();
    403         ds.addPrimitive(polyline);
     403        dataSet.addPrimitive(polyline);
    404404        if (initial) {
    405405            readAttributes(polyline);
     
    431431            region = new Relation();
    432432            region.put("type", "multipolygon");
    433             ds.addPrimitive(region);
     433            dataSet.addPrimitive(region);
    434434            readAttributes(region);
    435435        } else {
     
    488488                initializeReaders(in, file, cs, 1);
    489489                parseHeader();
    490                 return ds;
     490                return dataSet;
    491491            } finally {
    492492                if (midReader != null) {
     
    520520        } else if (words[0].equalsIgnoreCase("Data")) {
    521521            parseData(words);
    522         } else if (ds != null) {
     522        } else if (dataSet != null) {
    523523            if (state == State.START_POLYGON) {
    524524                numpts = Integer.parseInt(words[0]);
    525525                polygon = new Way();
    526                 ds.addPrimitive(polygon);
     526                dataSet.addPrimitive(polygon);
    527527                if (region != null) {
    528528                    region.addMember(new RelationMember("outer", polygon));
     
    629629    private Node createNode(String x, String y) {
    630630        Node node = new Node(josmProj.eastNorth2latlon(new EastNorth(Double.parseDouble(x), Double.parseDouble(y))));
    631         ds.addPrimitive(node);
     631        dataSet.addPrimitive(node);
    632632        return node;
    633633    }
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/TabFiles.java

    r36072 r36092  
    111111            for (Entry<ShpFileType, URL> entry : entries) {
    112112                if (!exists(entry.getKey())) {
    113                     url = findExistingFile(entry.getKey(), entry.getValue());
     113                    url = findExistingFile(entry.getValue());
    114114                    if (url != null) {
    115115                        toUpdate.put(entry.getKey(), url);
     
    121121    }
    122122
    123     private URL findExistingFile(ShpFileType shpFileType, URL value) {
     123    private URL findExistingFile(URL value) {
    124124        final File file = URLs.urlToFile(value);
    125125        File directory = file.getParentFile();
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/licenses/License.java

    r36072 r36092  
    1414public abstract class License {
    1515
    16     public static final ODbL ODbL = new ODbL();
    17     public static final LOOL LOOL = new LOOL();
     16    public static final ODbL odbl = new ODbL();
     17    public static final LOOL lool = new LOOL();
    1818
    1919    private final Map<String, URL> urls = new HashMap<>();
Note: See TracChangeset for help on using the changeset viewer.