Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/java/org/joist/security UnsecureServlet.java

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: joist/java/org/joist/security UnsecureServlet.java

Author dlr
Full name Daniel Rall
Date 2001-03-30 14:05:58 PST
Message User: dlr
  Date: 01/03/30 14:05:58

  Modified: java/org/joist/security UnsecureServlet.java
  Log:
  Add a constant for the empty String object sometimes supplied to the
  context by <code>processF​ield</code>. I'm hoping this will cut down
  on object creation for all screens with forms.
  
  Revision Changes Path
  1.120 +8 -2 joist/java/org/joist​/security/UnsecureSe​rvlet.java
  
  Index: UnsecureServlet.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/security/Unsec​ureServlet.java,v
  retrieving revision 1.119
  retrieving revision 1.120
  diff -u -r1.119 -r1.120
  --- UnsecureServlet.java 2001/03/08 03:12:41 1.119
  +++ UnsecureServlet.java 2001/03/30 22:05:58 1.120
  @@ -80,7 +80,7 @@
    *
    * @author David C. Pellegrini <A HREF="mailto:davidp@​dataweb-systems.com"​>davidp@dataweb-s​ystems.com</A>​
    * @author <a href="mailto:dlr@col​lab.net">Daniel Rall</a>
  - * @version $Revision: 1.119 $
  + * @version $Revision: 1.120 $
    *
    * Copyright (c) 1999 dataweb systems, inc.
    * Copyright (c) 1999, 2000 CollabNet, Inc.
  @@ -118,6 +118,12 @@
       private static final boolean DEBUG = false;
   
       /**
  + * A constant for the empty {@link java.lang.String} object sometimes
  + * supplied to the context by <code>processF​ield</code>.
  + */
  + private static final String EMPTY_STRING = "";
  +
  + /**
        * The properties key to the default mount point.
        */
       private static final String DEF_MNT_PT =
  @@ -1664,7 +1670,7 @@
               {
                   missingFields.add(description);
               }
  - value = (defaultValue != null ? defaultValue : "");
  + value = (defaultValue != null ? defaultValue : EMPTY_STRING);
           }
           context.put(key, value);
           if (DEBUG) Log.debug("Processing field: " + key + '=' + value);

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: joist/java/org/joist/security UnsecureServlet.java dlr Daniel Rall 2001-03-30 14:05:58 PST
Messages per page: