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/dialogs/changeset/ChangesetContentDownloadTask.java

    r8509 r8510  
    134134     */
    135135    protected void downloadChangeset(int changesetId) throws OsmTransferException {
    136         synchronized(this) {
     136        synchronized (this) {
    137137            reader = new OsmServerChangesetReader();
    138138        }
    139139        Changeset cs = reader.readChangeset(changesetId, false, getProgressMonitor().createSubTaskMonitor(0, false));
    140         synchronized(this) {
     140        synchronized (this) {
    141141            reader = null;
    142142        }
     
    166166        try {
    167167            getProgressMonitor().setTicksCount(toDownload.size());
    168             int i=0;
     168            int i = 0;
    169169            for (int id: toDownload) {
    170170                i++;
     
    174174                }
    175175                if (canceled) return;
    176                 synchronized(this) {
     176                synchronized (this) {
    177177                    reader = new OsmServerChangesetReader();
    178178                }
    179179                getProgressMonitor().setCustomText(tr("({0}/{1}) Downloading content for changeset {2}...", i, toDownload.size(), id));
    180180                ChangesetDataSet ds = reader.downloadChangeset(id, getProgressMonitor().createSubTaskMonitor(0, false));
    181                 synchronized(this) {
     181                synchronized (this) {
    182182                    reader = null;
    183183                }
     
    188188                getProgressMonitor().worked(1);
    189189            }
    190         } catch(OsmTransferCanceledException e) {
     190        } catch (OsmTransferCanceledException e) {
    191191            // the download was canceled by the user. This exception is caught if the
    192192            // user canceled the authentication dialog.
     
    194194            canceled = true;
    195195            return;
    196         } catch(OsmTransferException e) {
     196        } catch (OsmTransferException e) {
    197197            if (canceled)
    198198                return;
Note: See TracChangeset for help on using the changeset viewer.