openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1680098 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/corespi/se/DefaultContextsService.java
Date Mon, 18 May 2015 21:02:48 GMT
Author: struberg
Date: Mon May 18 21:02:48 2015
New Revision: 1680098

URL: http://svn.apache.org/r1680098
Log:
avoid empty if blocks

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/corespi/se/DefaultContextsService.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/corespi/se/DefaultContextsService.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/corespi/se/DefaultContextsService.java?rev=1680098&r1=1680097&r2=1680098&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/corespi/se/DefaultContextsService.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/corespi/se/DefaultContextsService.java
Mon May 18 21:02:48 2015
@@ -99,15 +99,13 @@ public class DefaultContextsService exte
         {
             stopConversationContext(endParameters);
         }
-        else if(scopeType.equals(Dependent.class))
-        {
-            //Do nothing
-        }
         else if(scopeType.equals(Singleton.class))
         {
             stopSingletonContext(endParameters);
         }
 
+        // do nothing for Dependent.class
+
     }
 
 
@@ -170,14 +168,13 @@ public class DefaultContextsService exte
             {
                 startConversationContext(startParameter);
             }
-            else if(scopeType.equals(Dependent.class))
-            {
-                //Do nothing
-            }
             else if(scopeType.equals(Singleton.class))
             {
                 startSingletonContext(startParameter);
             }
+
+            // do nothing for Dependent.class
+
         }
         catch(Exception e)
         {



Mime
View raw message