You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by dl...@apache.org on 2001/10/08 23:11:45 UTC
cvs commit: jakarta-turbine-3/src/java/org/apache/turbine/modules/actions LoginUser.java
dlr 01/10/08 14:11:45
Modified: src/java/org/apache/turbine/modules/actions LoginUser.java
Log:
No reason to create a new Boolean object here every time -- used the
constant Boolean.TRUE instead.
Revision Changes Path
1.3 +2 -2 jakarta-turbine-3/src/java/org/apache/turbine/modules/actions/LoginUser.java
Index: LoginUser.java
===================================================================
RCS file: /home/cvs/jakarta-turbine-3/src/java/org/apache/turbine/modules/actions/LoginUser.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -u -r1.2 -r1.3
--- LoginUser.java 2001/09/01 16:58:11 1.2
+++ LoginUser.java 2001/10/08 21:11:45 1.3
@@ -69,7 +69,7 @@
* that users last login time will be updated.
*
* @author <a href="mailto:mbryson@mont.mindspring.com">Dave Bryson</a>
- * @version $Id: LoginUser.java,v 1.2 2001/09/01 16:58:11 jvanzyl Exp $
+ * @version $Id: LoginUser.java,v 1.3 2001/10/08 21:11:45 dlr Exp $
*/
public class LoginUser
extends Action
@@ -113,7 +113,7 @@
data.setUser(user);
// Mark the user as being logged in.
- user.setHasLoggedIn(new Boolean(true));
+ user.setHasLoggedIn(Boolean.TRUE);
// Set the last_login date in the database.
user.updateLastLogin();
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org