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

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

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/AudioPlayer.java

    r6246 r6310  
    198198     */
    199199    public static void reset() {
    200         if(audioPlayer != null)
    201         {
     200        if(audioPlayer != null) {
    202201            try {
    203202                pause();
    204             } catch(Exception e) {}
     203            } catch(Exception e) {
     204                Main.warn(e);
     205            }
    205206            audioPlayer.playingUrl = null;
    206207        }
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r6283 r6310  
    603603                        try {
    604604                            img = ImageIO.read(new ByteArrayInputStream(buf));
    605                         } catch (IOException e) {}
     605                        } catch (IOException e) {
     606                            Main.warn(e);
     607                        }
    606608                        return img == null ? null : new ImageResource(img);
    607609                    default:
     
    657659                    return f.toURI().toURL();
    658660            } catch (MalformedURLException e) {
     661                Main.warn(e);
    659662            }
    660663        }
  • trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java

    r6203 r6310  
    2323            }
    2424        } catch (UnsupportedEncodingException x) {
     25            Main.error(x);
    2526        } catch (IllegalArgumentException x) {
     27            Main.error(x);
    2628        }
    2729        Bounds b = parseShortLink(url);
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookUnixoid.java

    r6103 r6310  
    1414import java.util.List;
    1515
     16import org.openstreetmap.josm.Main;
     17
    1618/**
    1719 * see PlatformHook.java
     
    4244                return;
    4345            } catch (IOException e) {
     46                Main.warn(e);
    4447            }
    4548        }
     
    123126            }
    124127        } catch (IOException e) {
     128            Main.warn(e);
    125129        }
    126130        return null;
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r6268 r6310  
    394394                    Thread.sleep(1);
    395395                } catch (InterruptedException ex) {
     396                    Main.warn(ex);
    396397                }
    397398            }
Note: See TracChangeset for help on using the changeset viewer.