openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r1125857 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectionResolver.java
Date Sun, 22 May 2011 00:47:35 GMT
Author: dblevins
Date: Sun May 22 00:47:35 2011
New Revision: 1125857

URL: http://svn.apache.org/viewvc?rev=1125857&view=rev
Log:
small simplification of array creation

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectionResolver.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectionResolver.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectionResolver.java?rev=1125857&r1=1125856&r2=1125857&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectionResolver.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/InjectionResolver.java
Sun May 22 00:47:35 2011
@@ -460,16 +460,14 @@ public class InjectionResolver
 
         if (isInstanceOrEventInjection(injectionPointType))
         {
-            qualifiers = new Annotation[1];
-            qualifiers[0] = new AnyLiteral();
+            qualifiers = new Annotation[]{new AnyLiteral()};
         }
 
         else
         {
             if (qualifiers.length == 0)
             {
-                qualifiers = new Annotation[1];
-                qualifiers[0] = new DefaultLiteral();
+                qualifiers = new Annotation[]{new DefaultLiteral()};
                 currentQualifier = true;
             }
         }



Mime
View raw message