Ignore:
Timestamp:
2016-09-05T23:50:16+02:00 (3 years ago)
Author:
Don-vip
Message:

sonar - squid:S1226 - Method parameters, caught exceptions and foreach variables should not be reassigned

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/plugins/ReadLocalPluginInformationTask.java

    r10616 r10965  
    130130    }
    131131
    132     protected void scanLocalPluginRepository(ProgressMonitor monitor, File pluginsDirectory) {
     132    protected void scanLocalPluginRepository(ProgressMonitor progressMonitor, File pluginsDirectory) {
    133133        if (pluginsDirectory == null)
    134134            return;
    135         if (monitor == null)
    136             monitor = NullProgressMonitor.INSTANCE;
     135        ProgressMonitor monitor = progressMonitor != null ? progressMonitor : NullProgressMonitor.INSTANCE;
    137136        try {
    138137            monitor.beginTask("");
Note: See TracChangeset for help on using the changeset viewer.