tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r989016 - /tomcat/trunk/java/org/apache/catalina/authenticator/SingleSignOn.java
Date Wed, 25 Aug 2010 11:25:18 GMT
Author: markt
Date: Wed Aug 25 11:25:18 2010
New Revision: 989016

URL: http://svn.apache.org/viewvc?rev=989016&view=rev
Log:
Trivial code clean-up

Modified:
    tomcat/trunk/java/org/apache/catalina/authenticator/SingleSignOn.java

Modified: tomcat/trunk/java/org/apache/catalina/authenticator/SingleSignOn.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/authenticator/SingleSignOn.java?rev=989016&r1=989015&r2=989016&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/authenticator/SingleSignOn.java (original)
+++ tomcat/trunk/java/org/apache/catalina/authenticator/SingleSignOn.java Wed Aug 25 11:25:18
2010
@@ -127,9 +127,10 @@ public class SingleSignOn extends ValveB
      */
     public void setCookieDomain(String cookieDomain) {
         if (cookieDomain != null && cookieDomain.trim().length() == 0) {
-            cookieDomain = null;
+            this.cookieDomain = null;
+        } else {
+            this.cookieDomain = cookieDomain;
         }
-        this.cookieDomain = cookieDomain;
     }
 
     /**
@@ -373,16 +374,16 @@ public class SingleSignOn extends ValveB
         }
 
         SingleSignOnEntry sso = lookup(ssoId);
-        if ( sso == null )
+        if (sso == null)
             return;
 
-        sso.removeSession( session );
+        sso.removeSession(session);
 
         // see if we are the last session, if so blow away ssoId
         Session sessions[] = sso.findSessions();
-        if ( sessions == null || sessions.length == 0 ) {
+        if (sessions == null || sessions.length == 0) {
             synchronized (cache) {
-                sso = cache.remove(ssoId);
+                cache.remove(ssoId);
             }
         }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message