Ignore:
Timestamp:
2015-05-09T12:49:35+02:00 (9 years ago)
Author:
Don-vip
Message:

code style - Close curly brace and the next "else", "catch" and "finally" keywords should be located on the same line

File:
1 edited

Legend:

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

    r7299 r8342  
    320320        if (e instanceof OsmApiException) {
    321321            OsmApiException ex = (OsmApiException)e;
    322             // There was an upload conflict. Let the user decide whether
    323             // and how to resolve it
    324             //
    325322            if(ex.getResponseCode() == HttpURLConnection.HTTP_CONFLICT) {
     323                // There was an upload conflict. Let the user decide whether and how to resolve it
    326324                handleUploadConflict(ex);
    327325                return;
     326            } else if (ex.getResponseCode() == HttpURLConnection.HTTP_PRECON_FAILED) {
     327                // There was a precondition failed. Notify the user.
     328                handlePreconditionFailed(ex);
     329                return;
     330            } else if (ex.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) {
     331                // Tried to update or delete a primitive which never existed on the server?
     332                ExceptionDialogUtil.explainNotFound(ex);
     333                return;
    328334            }
    329             // There was a precondition failed. Notify the user.
    330             //
    331             else if (ex.getResponseCode() == HttpURLConnection.HTTP_PRECON_FAILED) {
    332                 handlePreconditionFailed(ex);
    333                 return;
    334             }
    335             // Tried to update or delete a primitive which never existed on
    336             // the server?
    337             //
    338             else if (ex.getResponseCode() == HttpURLConnection.HTTP_NOT_FOUND) {
    339                 ExceptionDialogUtil.explainNotFound(ex);
    340                 return;
    341             }
    342335        }
    343336
Note: See TracChangeset for help on using the changeset viewer.