Changeset 11535 in josm for trunk/src/org/openstreetmap/josm


Ignore:
Timestamp:
2017-02-04T15:19:54+01:00 (7 years ago)
Author:
Don-vip
Message:

sonar - squid:S2142 - "InterruptedException" should not be ignored

Location:
trunk/src/org/openstreetmap/josm
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/downloadtasks/AbstractChangesetDownloadTask.java

    r10601 r11535  
    6969                } catch (InterruptedException e) {
    7070                    Main.warn("InterruptedException in "+getClass().getSimpleName()+" while updating changeset cache");
     71                    Thread.currentThread().interrupt();
    7172                } catch (InvocationTargetException e) {
    7273                    Throwable t = e.getTargetException();
  • trunk/src/org/openstreetmap/josm/data/CustomConfigurator.java

    r11521 r11535  
    376376                } catch (InterruptedException ex) {
    377377                    Main.warn(ex, "InterruptedException while reading local plugin information");
     378                    Thread.currentThread().interrupt();
    378379                }
    379380
  • trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java

    r11397 r11535  
    406406            LOG.log(Level.WARNING, "JCS - Exception during download {0}", getUrlNoException());
    407407            Main.warn(e);
     408            Thread.currentThread().interrupt();
    408409        }
    409410        LOG.log(Level.WARNING, "JCS - Silent failure during download: {0}", getUrlNoException());
  • trunk/src/org/openstreetmap/josm/gui/MapStatus.java

    r11348 r11535  
    410410                        // Occurs frequently during JOSM shutdown, log set to trace only
    411411                        Main.trace("InterruptedException in "+MapStatus.class.getSimpleName());
     412                        Thread.currentThread().interrupt();
    412413                    } catch (InvocationTargetException e) {
    413414                        Main.warn(e);
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r11466 r11535  
    704704                        } catch (InterruptedException ex) {
    705705                            Main.warn("InterruptedException in "+NavigatableComponent.class.getSimpleName()+" during smooth scrolling");
     706                            Thread.currentThread().interrupt();
    706707                        }
    707708                    }
  • trunk/src/org/openstreetmap/josm/gui/datatransfer/ClipboardUtils.java

    r11454 r11535  
    114114                    Main.warn(ex, "InterruptedException in " + Utils.class.getSimpleName()
    115115                            + " while getting clipboard content");
     116                    Thread.currentThread().interrupt();
    116117                }
    117118            } catch (NullPointerException e) {
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ChangesetDialog.java

    r10938 r11535  
    525525                    } catch (InterruptedException e1) {
    526526                        Main.warn(e1, "InterruptedException in ChangesetDialog while downloading changeset header");
     527                        Thread.currentThread().interrupt();
    527528                    } catch (ExecutionException e2) {
    528529                        Main.error(e2);
  • trunk/src/org/openstreetmap/josm/gui/io/UploadPrimitivesTask.java

    r10627 r11535  
    230230            Main.trace(e);
    231231            lastException = e;
     232            Thread.currentThread().interrupt();
    232233        } catch (InvocationTargetException e) {
    233234            Main.trace(e);
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java

    r10173 r11535  
    8282                } catch (InterruptedException e) {
    8383                    Main.warn("InterruptedException in "+getClass().getSimpleName()+" while loading image "+file.getPath());
     84                    Thread.currentThread().interrupt();
    8485                }
    8586            }
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ThumbsLoader.java

    r10300 r11535  
    115115        } catch (InterruptedException e) {
    116116            Main.error(" InterruptedException while loading thumb");
     117            Thread.currentThread().interrupt();
    117118            return null;
    118119        }
     
    151152            } catch (InterruptedException ie) {
    152153                Main.warn("InterruptedException while drawing thumb");
     154                Thread.currentThread().interrupt();
    153155            }
    154156        }
  • trunk/src/org/openstreetmap/josm/gui/layer/gpx/DownloadWmsAlongTrackAction.java

    r11017 r11535  
    6767                } catch (InterruptedException ex) {
    6868                    Main.warn("InterruptedException in "+getClass().getSimpleName()+" while precaching WMS");
     69                    Thread.currentThread().interrupt();
    6970                }
    7071            }
  • trunk/src/org/openstreetmap/josm/io/FileWatcher.java

    r10615 r11535  
    114114                key = watcher.take();
    115115            } catch (InterruptedException x) {
     116                Thread.currentThread().interrupt();
    116117                return;
    117118            }
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r11532 r11535  
    563563            } catch (InterruptedException ex) {
    564564                Main.warn("InterruptedException in "+getClass().getSimpleName()+" during sleep");
     565                Thread.currentThread().interrupt();
    565566            }
    566567        }
  • trunk/src/org/openstreetmap/josm/tools/HttpClient.java

    r11381 r11535  
    664664        } catch (InterruptedException ex) {
    665665            Main.warn("InterruptedException in " + HttpClient.class + " during cancel");
     666            Thread.currentThread().interrupt();
    666667        }
    667668        connection.disconnect();
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookOsx.java

    r11162 r11535  
    133133                                    } catch (InterruptedException e) {
    134134                                        Main.warn(e);
     135                                        Thread.currentThread().interrupt();
    135136                                    }
    136137                                }
  • trunk/src/org/openstreetmap/josm/tools/bugreport/BugReportQueue.java

    r11211 r11535  
    8282            } catch (InterruptedException e) {
    8383                displayFor(BugReport.intercept(e));
     84                Thread.currentThread().interrupt();
    8485            }
    8586        }
Note: See TracChangeset for help on using the changeset viewer.