commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1609821 - in /commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration: ConfigurationUtils.java event/BaseEventSource.java event/EventSource.java
Date Fri, 11 Jul 2014 20:34:25 GMT
Author: oheger
Date: Fri Jul 11 20:34:24 2014
New Revision: 1609821

URL: http://svn.apache.org/r1609821
Log:
Removed obsolete methods from EventSource and BaseEventSource.

Methods which have been deprecated formally are no longer used after the
code base has been reworked. They can now be removed.

Modified:
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/ConfigurationUtils.java
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/event/BaseEventSource.java
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/event/EventSource.java

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/ConfigurationUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/ConfigurationUtils.java?rev=1609821&r1=1609820&r2=1609821&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/ConfigurationUtils.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/ConfigurationUtils.java
Fri Jul 11 20:34:24 2014
@@ -87,12 +87,6 @@ public final class ConfigurationUtils
         }
 
         @Override
-        public boolean removeConfigurationListener(ConfigurationListener l)
-        {
-            return false;
-        }
-
-        @Override
         public void addErrorListener(ConfigurationErrorListener l)
         {
         }

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/event/BaseEventSource.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/event/BaseEventSource.java?rev=1609821&r1=1609820&r2=1609821&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/event/BaseEventSource.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/event/BaseEventSource.java
Fri Jul 11 20:34:24 2014
@@ -101,12 +101,6 @@ public class BaseEventSource implements 
         listeners.add(l);
     }
 
-    @Override
-    public boolean removeConfigurationListener(ConfigurationListener l)
-    {
-        return listeners.remove(l);
-    }
-
     /**
      * Returns a collection with all configuration event listeners that are
      * currently registered at this object.
@@ -146,16 +140,6 @@ public class BaseEventSource implements 
     }
 
     /**
-     * Removes all registered configuration listeners.
-     * @deprecated Use clearEventListeners()
-     */
-    @Deprecated
-    public void clearConfigurationListeners()
-    {
-        listeners.clear();
-    }
-
-    /**
      * Returns a flag whether detail events are enabled.
      *
      * @return a flag if detail events are generated

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/event/EventSource.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/event/EventSource.java?rev=1609821&r1=1609820&r2=1609821&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/event/EventSource.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/event/EventSource.java
Fri Jul 11 20:34:24 2014
@@ -42,17 +42,6 @@ public interface EventSource
     void addConfigurationListener(ConfigurationListener l);
 
     /**
-     * Removes the specified event listener so that it does not receive any
-     * further events caused by this object.
-     *
-     * @param l the listener to be removed
-     * @return a flag whether the event listener was found
-     * @deprecated Use {@code removeEventListener()}
-     */
-    @Deprecated
-    boolean removeConfigurationListener(ConfigurationListener l);
-
-    /**
      * Adds a new configuration error listener to this object. This listener
      * will then be notified about internal problems.
      *



Mime
View raw message