Changeset 19168 in josm for trunk/src


Ignore:
Timestamp:
2024-08-06T15:18:35+02:00 (3 months ago)
Author:
taylor.smock
Message:

Fix #23772: Fix logging issue which indicated that a dependency was not found

File:
1 edited

Legend:

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

    r19154 r19168  
    969969                    continue;
    970970                }
     971                boolean found = false;
    971972                for (PluginProxy proxy : pluginList) {
    972973                    if (isDependency(proxy.getPluginInformation(), depName)) {
    973                         cl.addDependency(proxy.getClassLoader());
     974                        found = cl.addDependency(proxy.getClassLoader());
    974975                        break;
    975976                    }
    976977                }
    977                 Logging.error("unable to find dependency " + depName + " for plugin " + info.getName());
     978                if (!found) {
     979                    Logging.error("unable to find dependency " + depName + " for plugin " + info.getName());
     980                }
    978981            }
    979982        }
Note: See TracChangeset for help on using the changeset viewer.