Ignore:
Timestamp:
2014-10-19T01:27:04+02:00 (10 years ago)
Author:
donvip
Message:

[josm_plugins] fix java 7 warnings / global usage of try-with-resource

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreSessionImporter.java

    r30701 r30738  
    2222public class CadastreSessionImporter implements SessionLayerImporter{
    2323
    24         @Override
    25         public Layer load(Element elem, ImportSupport support,
    26                         ProgressMonitor progressMonitor) throws IOException,
    27                         IllegalDataException {
     24    @Override
     25    public Layer load(Element elem, ImportSupport support,
     26            ProgressMonitor progressMonitor) throws IOException,
     27            IllegalDataException {
    2828        String version = elem.getAttribute("version");
    2929        if (!"0.1".equals(version)) {
     
    4141            fileStr = URLDecoder.decode(fileStr, "UTF-8");
    4242            fileStr = fileStr.substring(fileStr.indexOf(":/")+2);
    43                 String filename = fileStr.substring(fileStr.lastIndexOf("/")+1,fileStr.length());
     43            String filename = fileStr.substring(fileStr.lastIndexOf("/")+1,fileStr.length());
    4444            String ext = (filename.lastIndexOf(".")==-1)?"":filename.substring(filename.lastIndexOf(".")+1,filename.length());
    4545            // create layer and load cache
     
    6060            throw new RuntimeException(e);
    6161        }
    62         }
     62    }
    6363
    6464}
Note: See TracChangeset for help on using the changeset viewer.