openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1680084 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
Date Mon, 18 May 2015 20:06:16 GMT
Author: struberg
Date: Mon May 18 20:06:16 2015
New Revision: 1680084

URL: http://svn.apache.org/r1680084
Log:
remove unnecessary null check

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

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java?rev=1680084&r1=1680083&r2=1680084&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
Mon May 18 20:06:16 2015
@@ -623,17 +623,16 @@ public class BeanManagerImpl implements
     @Override
     public Object getInjectableReference(InjectionPoint injectionPoint, CreationalContext<?>
ownerCreationalContext)
     {
-        Asserts.assertNotNull(injectionPoint, "injectionPoint");
-
-        //Injected instance
-        Object instance = null;
-
         //Injection point is null
         if(injectionPoint == null)
         {
             return null;
         }
 
+        //Injected instance
+        Object instance = null;
+
+
         //Find the injection point Bean
         Bean<Object> injectedBean = (Bean<Object>)injectionResolver.getInjectionPointBean(injectionPoint);
 



Mime
View raw message