commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1609782 - in /commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder: BasicConfigurationBuilder.java ConfigurationBuilder.java
Date Fri, 11 Jul 2014 20:10:19 GMT
Author: oheger
Date: Fri Jul 11 20:10:19 2014
New Revision: 1609782

URL: http://svn.apache.org/r1609782
Log:
Renamed type parameter.

The parameter T is already used by the class. Therefore, E was chosen for the
event type.

Modified:
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/BasicConfigurationBuilder.java
    commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/ConfigurationBuilder.java

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/BasicConfigurationBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/BasicConfigurationBuilder.java?rev=1609782&r1=1609781&r2=1609782&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/BasicConfigurationBuilder.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/BasicConfigurationBuilder.java
Fri Jul 11 20:10:19 2014
@@ -382,15 +382,15 @@ public class BasicConfigurationBuilder<T
      *         <b>null</b>
      */
     @Override
-    public final  <T1 extends ConfigurationBuilderEvent> void addEventListener(
-            EventType<T1> eventType, EventListener<? super T1> listener)
+    public final  <E extends ConfigurationBuilderEvent> void addEventListener(
+            EventType<E> eventType, EventListener<? super E> listener)
     {
         eventListeners.addEventListener(eventType, listener);
     }
 
     @Override
-    public final  <T1 extends ConfigurationBuilderEvent> void removeEventListener(
-            EventType<T1> eventType, EventListener<? super T1> listener)
+    public final  <E extends ConfigurationBuilderEvent> void removeEventListener(
+            EventType<E> eventType, EventListener<? super E> listener)
     {
         eventListeners.removeEventListener(eventType, listener);
     }

Modified: commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/ConfigurationBuilder.java
URL: http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/ConfigurationBuilder.java?rev=1609782&r1=1609781&r2=1609782&view=diff
==============================================================================
--- commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/ConfigurationBuilder.java
(original)
+++ commons/proper/configuration/trunk/src/main/java/org/apache/commons/configuration/builder/ConfigurationBuilder.java
Fri Jul 11 20:10:19 2014
@@ -57,8 +57,8 @@ public interface ConfigurationBuilder<T 
      * @param listener the listener to be registered (must not be <b>null</b>)
      * @throws IllegalArgumentException if a required parameter is <b>null</b>
      */
-    <T extends ConfigurationBuilderEvent> void addEventListener(
-            EventType<T> eventType, EventListener<? super T> listener);
+    <E extends ConfigurationBuilderEvent> void addEventListener(
+            EventType<E> eventType, EventListener<? super E> listener);
 
     /**
      * Removes the specified {@code EventListener} from this builder.
@@ -66,6 +66,6 @@ public interface ConfigurationBuilder<T 
      * @param eventType the event type
      * @param listener the listener to be removed
      */
-    <T extends ConfigurationBuilderEvent> void removeEventListener(
-            EventType<T> eventType, EventListener<? super T> listener);
+    <E extends ConfigurationBuilderEvent> void removeEventListener(
+            EventType<E> eventType, EventListener<? super E> listener);
 }



Mime
View raw message