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/plugins/PluginDownloadTask.java

    r8443 r8510  
    7171     */
    7272    public PluginDownloadTask(ProgressMonitor monitor, Collection<PluginInformation> toUpdate, String title) {
    73         super(title, monitor == null? NullProgressMonitor.INSTANCE: monitor, false /* don't ignore exceptions */);
     73        super(title, monitor == null ? NullProgressMonitor.INSTANCE : monitor, false /* don't ignore exceptions */);
    7474        CheckParameterUtil.ensureParameterNotNull(toUpdate, "toUpdate");
    7575        this.toUpdate.addAll(toUpdate);
     
    9191    protected void cancel() {
    9292        this.canceled = true;
    93         synchronized(this) {
     93        synchronized (this) {
    9494            if (downloadConnection != null) {
    9595                downloadConnection.disconnect();
     
    101101    protected void finish() {}
    102102
    103     protected void download(PluginInformation pi, File file) throws PluginDownloadException{
     103    protected void download(PluginInformation pi, File file) throws PluginDownloadException {
    104104        if (pi.mainversion > Version.getInstance().getVersion()) {
    105105            ExtendedDialog dialog = new ExtendedDialog(
     
    124124            }
    125125            URL url = new URL(pi.downloadlink);
    126             synchronized(this) {
     126            synchronized (this) {
    127127                downloadConnection = CachedFile.connectFollowingRedirect(url, PLUGIN_MIME_TYPES, null);
    128128            }
     
    146146            throw new PluginDownloadException(e);
    147147        } finally {
    148             synchronized(this) {
     148            synchronized (this) {
    149149                downloadConnection = null;
    150150            }
     
    168168            try {
    169169                download(d, pluginFile);
    170             } catch(PluginDownloadException e) {
     170            } catch (PluginDownloadException e) {
    171171                Main.error(e);
    172172                failed.add(d);
Note: See TracChangeset for help on using the changeset viewer.