You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/06/30 16:50:49 UTC

[commons-configuration] 01/04: Fix PMD UselessOverridingMethod

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git

commit 4976072bf1abba8399a8ab354f7d59cd6a32778a
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Jun 30 09:43:29 2022 -0400

    Fix PMD UselessOverridingMethod
---
 .../commons/configuration2/DynamicCombinedConfiguration.java | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/src/main/java/org/apache/commons/configuration2/DynamicCombinedConfiguration.java b/src/main/java/org/apache/commons/configuration2/DynamicCombinedConfiguration.java
index 05b88039..85a53589 100644
--- a/src/main/java/org/apache/commons/configuration2/DynamicCombinedConfiguration.java
+++ b/src/main/java/org/apache/commons/configuration2/DynamicCombinedConfiguration.java
@@ -604,18 +604,6 @@ public class DynamicCombinedConfiguration extends CombinedConfiguration {
         super.clearErrorListeners();
     }
 
-    /**
-     * Returns a copy of this object. This implementation performs a deep clone, i.e. all contained configurations will be
-     * cloned, too. For this to work, all contained configurations must be cloneable. Registered event listeners won't be
-     * cloned. The clone will use the same node combiner than the original.
-     *
-     * @return the copied object
-     */
-    @Override
-    public Object clone() {
-        return super.clone();
-    }
-
     /**
      * Invalidates the current combined configuration. This means that the next time a property is accessed the combined
      * node structure must be re-constructed. Invalidation of a combined configuration also means that an event of type