webwork/src/main/webwork/view/velocity URLBean.java,1.3,1.4

[email protected] Sat, 01 Nov 2003 11:47:44 -0800
Newsgroups gmane.comp.java.open-symphony.cvs
Message-ID <[email protected]>
Update of /cvsroot/opensymphony/webwork/src/main/webwork/view/velocity
In directory sc8-pr-cvs1:/tmp/cvs-serv12113/src/main/webwork/view/velocity

Modified Files:
	URLBean.java 
Log Message:
minor optimisation from boxed

Index: URLBean.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/view/velocity/URLBean.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- URLBean.java	7 May 2003 19:39:14 -0000	1.3
+++ URLBean.java	1 Nov 2003 19:47:42 -0000	1.4
@@ -28,7 +28,9 @@
    /** Content name */
    private String page = null;
    /** Path info parameters */
-   private Map params = null;
+   private Map params = new HashMap();
+
+	 private StringBuffer link = new StringBuffer();
 
    public URLBean()
    {
@@ -108,7 +110,6 @@
          params = request.getParameterMap();
       }
 
-      StringBuffer link = new StringBuffer();
       if (page != null)
       {
          if ( page.startsWith("/") )
@@ -175,8 +176,9 @@
       }
 
       // Reset params and page
-      this.params=null;
+      this.params.clear();
       this.page=null;
+			link.delete(0, link.length());
 
       return result;
    }




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/