Ignore:
Timestamp:
2026-02-20T11:51:47+01:00 (3 months ago)
Author:
stoecker
Message:

remove a lot of PMD warnings, especially outdated ignores, see #24635

Location:
trunk/src/org/openstreetmap/josm/plugins
Files:
2 edited

Legend:

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

    r19106 r19535  
    8989     * @return the class, if found, otherwise {@code null}
    9090     */
    91     @SuppressWarnings("PMD.CloseResource") // NOSONAR We do *not* want to close class loaders in this method...
    9291    private Class<?> findClassInDependencies(String name, boolean resolve) {
    9392        for (PluginClassLoader dep : dependencies) {
     
    106105
    107106    @Override
    108     @SuppressWarnings("PMD.CloseResource") // NOSONAR We do *not* want to close class loaders in this method...
    109107    public URL findResource(String name) {
    110108        URL resource = super.findResource(name);
  • trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java

    r19168 r19535  
    831831     * @param plugins the plugins to add
    832832     */
    833     @SuppressWarnings("PMD.CloseResource") // NOSONAR We do *not* want to close class loaders in this method...
    834833    private static void extendJoinedPluginResourceCL(Collection<PluginInformation> plugins) {
    835834        // iterate all plugins and collect all libraries of all plugins:
     
    877876                        + "Delete from preferences?</html>", "'"+Utils.escapeReservedCharactersHTML(plugin.name)+"'", plugin.className);
    878877            }
    879         } catch (RuntimeException e) { // NOPMD
     878        } catch (RuntimeException e) {
    880879            pluginLoadingExceptions.put(plugin.name, e);
    881880            Logging.error(e);
     
    937936     * @param toLoad The plugins to generate the classloaders for
    938937     */
    939     @SuppressWarnings({"squid:S2095", "PMD.CloseResource"}) // NOSONAR the classloaders and put in a map which we want to keep.
     938    @SuppressWarnings("squid:S2095") // NOSONAR the classloaders and put in a map which we want to keep.
    940939    private static void generateClassloaders(List<PluginInformation> toLoad) {
    941940        for (PluginInformation info : toLoad) {
     
    953952     * @param toLoad The plugins to resolve dependencies for
    954953     */
    955     @SuppressWarnings({"squid:S2095", "PMD.CloseResource"}) // NOSONAR the classloaders are from a persistent map
     954    @SuppressWarnings("squid:S2095") // NOSONAR the classloaders are from a persistent map
    956955    private static void resolveDependencies(List<PluginInformation> toLoad) {
    957956        for (PluginInformation info : toLoad) {
Note: See TracChangeset for help on using the changeset viewer.