Ignore:
Timestamp:
2015-06-20T23:42:21+02:00 (9 years ago)
Author:
Don-vip
Message:

checkstyle: enable relevant whitespace checks and fix them

File:
1 edited

Legend:

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

    r6248 r8510  
    4848    protected void cancel() {
    4949        this.canceled = true;
    50         synchronized(this) {
     50        synchronized (this) {
    5151            if (reader != null) {
    5252                reader.cancel();
     
    7070            return;
    7171        }
    72         if (canceled)return;
     72        if (canceled) return;
    7373        if (lastException != null) {
    7474            ExceptionDialogUtil.explainException(lastException);
     
    9898     *
    9999     */
    100     protected void refreshUserIdentity(){
     100    protected void refreshUserIdentity() {
    101101        JosmUserIdentityManager im = JosmUserIdentityManager.getInstance();
    102102        try {
     
    104104            UserInfo info = infoReader.fetchUserInfo(getProgressMonitor().createSubTaskMonitor(1, false));
    105105            im.setFullyIdentified(info.getDisplayName(), info);
    106         } catch(OsmTransferException e) {
     106        } catch (OsmTransferException e) {
    107107            // retrieving the user info can fail if the current user is not authorised to
    108108            // retrieve it, i.e. if he is working with an OAuth Access Token which doesn't
     
    127127            if (im.isAnonymous()) {
    128128                refreshUserIdentity();
    129             } else if (im.isFullyIdentified()){
     129            } else if (im.isFullyIdentified()) {
    130130                // do nothing
    131131            } else if (im.isPartiallyIdentified()) {
    132132                refreshUserIdentity();
    133133            }
    134             if (canceled)return;
    135             synchronized(this) {
     134            if (canceled) return;
     135            synchronized (this) {
    136136                reader = new OsmServerChangesetReader();
    137137            }
     
    153153                    getProgressMonitor().createSubTaskMonitor(1, false /* not internal */)
    154154            );
    155         } catch(Exception e) {
     155        } catch (Exception e) {
    156156            if (canceled)
    157157                return;
Note: See TracChangeset for help on using the changeset viewer.