[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [commons-configuration] 01/04: Fix PMD UselessOverridingMethod
From:       ggregory () apache ! org
Date:       2022-06-30 16:50:49
Message-ID: 20220630165048.646BD4400D8 () gitbox2-he-fi ! apache ! org
[Download RAW message or body]

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 <garydgregory@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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic