webwork/src/main/webwork/view/velocity URLBean.java,1.6,1.7

[email protected] Sun, 09 Nov 2003 16:07:02 -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-serv27988/src/main/webwork/view/velocity

Modified Files:
	URLBean.java 
Log Message:
Get rid of foolish stringbuffer caching

Index: URLBean.java
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/view/velocity/URLBean.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- URLBean.java	9 Nov 2003 23:36:21 -0000	1.6
+++ URLBean.java	10 Nov 2003 00:07:00 -0000	1.7
@@ -30,8 +30,6 @@
    /** Path info parameters */
    private Map params = new HashMap();
 
-	 private StringBuffer link = new StringBuffer();
-
    public URLBean()
    {
 
@@ -110,6 +108,7 @@
          params = request.getParameterMap();
       }
 
+      StringBuffer link = new StringBuffer();
       if (page != null)
       {
          if ( page.startsWith("/") )
@@ -189,8 +188,6 @@
         }
       }
       this.page=null;
-			link.delete(0, link.length());
-
       return result;
    }
 




-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/