Changeset 11546 in josm


Ignore:
Timestamp:
2017-02-09T01:07:26+01:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S899 - Return values should not be ignored when they contain the operation status code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/cache/HostLimitQueue.java

    r11445 r11546  
    8989            } catch (InterruptedException e) {
    9090                // acquire my got interrupted, first offer back what was taken
    91                 offer(job);
     91                if (!offer(job)) {
     92                    Main.warn("Unable to offer back " + job);
     93                }
    9294                throw e;
    9395            }
     
    107109        } catch (InterruptedException e) {
    108110            // acquire my got interrupted, first offer back what was taken
    109             offer(job);
     111            if (!offer(job)) {
     112                Main.warn("Unable to offer back " + job);
     113            }
    110114            throw e;
    111115        }
Note: See TracChangeset for help on using the changeset viewer.