openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r737897 - /incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java
Date Mon, 26 Jan 2009 22:14:06 GMT
Author: gerdogdu
Date: Mon Jan 26 22:14:05 2009
New Revision: 737897

URL: http://svn.apache.org/viewvc?rev=737897&view=rev
Log:
Removes unnecessary code from the method : DefinitionUtil#defineInjectedFields(ComponentImpl<T>
component).

Modified:
    incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java

Modified: incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java?rev=737897&r1=737896&r2=737897&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DefinitionUtil.java
Mon Jan 26 22:14:05 2009
@@ -475,13 +475,10 @@
                 {
                     WebBeansUtil.checkForNewBindingForDeployment(field.getGenericType(),
clazz, field.getName(), anns);
 
-                    if (as.length > 0)
+                    int mod = field.getModifiers();
+                    if (!Modifier.isStatic(mod) && !Modifier.isFinal(mod))
                     {
-                        int mod = field.getModifiers();
-                        if (!Modifier.isStatic(mod) && !Modifier.isFinal(mod))
-                        {
-                            component.addInjectedField(field);
-                        }
+                        component.addInjectedField(field);
                     }
                 }
 



Mime
View raw message