commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1163800 - /commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletSessionScopeMap.java
Date Wed, 31 Aug 2011 20:27:48 GMT
Author: simonetripodi
Date: Wed Aug 31 20:27:48 2011
New Revision: 1163800

URL: http://svn.apache.org/viewvc?rev=1163800&view=rev
Log:
fixed checkstyle violations: Conditional logic can be removed.

Modified:
    commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletSessionScopeMap.java

Modified: commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletSessionScopeMap.java
URL: http://svn.apache.org/viewvc/commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletSessionScopeMap.java?rev=1163800&r1=1163799&r2=1163800&view=diff
==============================================================================
--- commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletSessionScopeMap.java
(original)
+++ commons/proper/chain/branches/version-2.0-work/src/main/java/org/apache/commons/chain/web/servlet/ServletSessionScopeMap.java
Wed Aug 31 20:27:48 2011
@@ -128,9 +128,8 @@ final class ServletSessionScopeMap imple
         if (sessionExists() &&
             session.getAttributeNames().hasMoreElements()) {
             return false;
-        } else {
-            return true;
         }
+        return true;
     }
 
 
@@ -227,9 +226,8 @@ final class ServletSessionScopeMap imple
         }
         if (session != null) {
             return true;
-        } else {
-            return false;
         }
+        return false;
     }
 
 }



Mime
View raw message