geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r767144 - /geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/Instanciator.java
Date Tue, 21 Apr 2009 13:39:41 GMT
Author: gnodet
Date: Tue Apr 21 13:39:41 2009
New Revision: 767144

URL: http://svn.apache.org/viewvc?rev=767144&view=rev
Log:
Rename local variable

Modified:
    geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/Instanciator.java

Modified: geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/Instanciator.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/Instanciator.java?rev=767144&r1=767143&r2=767144&view=diff
==============================================================================
--- geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/Instanciator.java
(original)
+++ geronimo/sandbox/blueprint/blueprint-core/src/main/java/org/apache/geronimo/blueprint/context/Instanciator.java
Tue Apr 21 13:39:41 2009
@@ -134,24 +134,24 @@
             return createServiceRecipe( (ServiceExportComponentMetadata) component);
         } else if (component instanceof UnaryServiceReferenceComponentMetadata) {
             UnaryServiceReferenceComponentMetadata metadata = (UnaryServiceReferenceComponentMetadata)
component;
-            CollectionRecipe cr = null;
+            CollectionRecipe listenersRecipe = null;
             if (metadata.getBindingListeners() != null) {
-                cr = new CollectionRecipe(ArrayList.class);;
+                listenersRecipe = new CollectionRecipe(ArrayList.class);
                 for (BindingListenerMetadata listener : (Collection<BindingListenerMetadata>)
metadata.getBindingListeners()) {
-                    cr.add(createRecipe(listener));
+                    listenersRecipe.add(createRecipe(listener));
                 }
             }
             UnaryServiceReferenceRecipe recipe = new UnaryServiceReferenceRecipe(moduleContext,
                                                                        moduleContext.getSender(),
                                                                        metadata,
-                                                                       cr);
+                                                                       listenersRecipe);
             recipe.setName(component.getName());
             return recipe;
         } else if (component instanceof CollectionBasedServiceReferenceComponentMetadata)
{
             CollectionBasedServiceReferenceComponentMetadata metadata = (CollectionBasedServiceReferenceComponentMetadata)
component;
             CollectionRecipe listenersRecipe = null;
             if (metadata.getBindingListeners() != null) {
-                listenersRecipe = new CollectionRecipe(ArrayList.class);;
+                listenersRecipe = new CollectionRecipe(ArrayList.class);
                 for (BindingListenerMetadata listener : (Collection<BindingListenerMetadata>)
metadata.getBindingListeners()) {
                     listenersRecipe.add(createRecipe(listener));
                 }
@@ -193,11 +193,11 @@
             }
         }
         if (serviceExport.getRegistrationListeners() != null) {
-            CollectionRecipe cr = new CollectionRecipe(ArrayList.class);;
+            CollectionRecipe listenersRecipe = new CollectionRecipe(ArrayList.class);
             for (RegistrationListenerMetadata listener : (Collection<RegistrationListenerMetadata>)serviceExport.getRegistrationListeners())
{
-                cr.add(createRecipe(listener));
+                listenersRecipe.add(createRecipe(listener));
             }
-            recipe.setProperty("listeners", cr);
+            recipe.setProperty("listeners", listenersRecipe);
         }
         return recipe;
     }



Mime
View raw message