Ignore:
Timestamp:
2013-10-07T00:04:48+02:00 (11 years ago)
Author:
Don-vip
Message:

Sonar/FindBugs - Nested blocks of code should not be left empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/MirroredInputStream.java

    r6248 r6310  
    158158    }
    159159
    160     public File getFile()
    161     {
     160    public File getFile() {
    162161        return file;
    163162    }
    164163
    165     static public void cleanup(String name)
    166     {
     164    public static void cleanup(String name) {
    167165        cleanup(name, null);
    168166    }
    169     static public void cleanup(String name, String destDir)
    170     {
     167   
     168    public static void cleanup(String name, String destDir) {
    171169        URL url;
    172170        try {
    173171            url = new URL(name);
    174             if (!url.getProtocol().equals("file"))
    175             {
     172            if (!url.getProtocol().equals("file")) {
    176173                String prefKey = getPrefKey(url, destDir);
    177174                List<String> localPath = new ArrayList<String>(Main.pref.getCollection(prefKey));
     
    184181                Main.pref.putCollection(prefKey, null);
    185182            }
    186         } catch (java.net.MalformedURLException e) {}
     183        } catch (MalformedURLException e) {
     184            Main.warn(e);
     185        }
    187186    }
    188187
Note: See TracChangeset for help on using the changeset viewer.