Ignore:
Timestamp:
2017-01-12T01:24:40+01:00 (8 years ago)
Author:
Don-vip
Message:

sonar - fb-contrib:SEO_SUBOPTIMAL_EXPRESSION_ORDER - Performance - Method orders expressions in a conditional in a sub optimal way

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJob.java

    r11331 r11452  
    183183                    handleNoTileAtZoom();
    184184                    int httpStatusCode = attributes.getResponseCode();
    185                     if (!isNoTileAtZoom() && httpStatusCode >= 400) {
     185                    if (httpStatusCode >= 400 && !isNoTileAtZoom()) {
    186186                        if (attributes.getErrorMessage() == null) {
    187187                            tile.setError(tr("HTTP error {0} when loading tiles", httpStatusCode));
Note: See TracChangeset for help on using the changeset viewer.