You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@apache.org on 2001/09/01 02:57:17 UTC

cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core Request.java

costin      01/08/31 17:57:17

  Modified:    src/share/org/apache/tomcat/core Request.java
  Log:
  Cosmetic - use the factory instead of new for MessageBytes.
  
  Revision  Changes    Path
  1.111     +12 -12    jakarta-tomcat/src/share/org/apache/tomcat/core/Request.java
  
  Index: Request.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Request.java,v
  retrieving revision 1.110
  retrieving revision 1.111
  diff -u -r1.110 -r1.111
  --- Request.java	2001/08/29 05:01:24	1.110
  +++ Request.java	2001/09/01 00:57:16	1.111
  @@ -145,23 +145,23 @@
       // MB are also used for headers - it allows lazy
       // byte->char conversion so we can add the encoding
       // that is known only after header parsing. Work in progress.
  -    protected MessageBytes schemeMB=new MessageBytes();
  +    protected MessageBytes schemeMB=MessageBytes.newInstance();
   
       // uri without any parsing performed
  -    protected MessageBytes unparsedURIMB=new MessageBytes();
  +    protected MessageBytes unparsedURIMB=MessageBytes.newInstance();
   
  -    protected MessageBytes methodMB=new MessageBytes();
  -    protected MessageBytes uriMB=new MessageBytes();
  -    protected MessageBytes queryMB=new MessageBytes();
  -    protected MessageBytes protoMB=new MessageBytes();
  +    protected MessageBytes methodMB=MessageBytes.newInstance();
  +    protected MessageBytes uriMB=MessageBytes.newInstance();
  +    protected MessageBytes queryMB=MessageBytes.newInstance();
  +    protected MessageBytes protoMB=MessageBytes.newInstance();
       // uri components
  -    protected MessageBytes contextMB=new MessageBytes();
  -    protected MessageBytes servletPathMB=new MessageBytes();
  -    protected MessageBytes pathInfoMB=new MessageBytes();
  +    protected MessageBytes contextMB=MessageBytes.newInstance();
  +    protected MessageBytes servletPathMB=MessageBytes.newInstance();
  +    protected MessageBytes pathInfoMB=MessageBytes.newInstance();
   
       // remote address/host
  -    protected MessageBytes remoteAddrMB=new MessageBytes();
  -    protected MessageBytes remoteHostMB=new MessageBytes();
  +    protected MessageBytes remoteAddrMB=MessageBytes.newInstance();
  +    protected MessageBytes remoteHostMB=MessageBytes.newInstance();
       
       // GS, used by the load balancing layer in the Web Servers
       // jvmRoute == the name of the JVM inside the plugin.
  @@ -181,7 +181,7 @@
       protected MessageBytes contentTypeMB=null;
       //    protected String contentType = null;
       protected String charEncoding = null;
  -    protected MessageBytes serverNameMB=new MessageBytes();
  +    protected MessageBytes serverNameMB=MessageBytes.newInstance();
   
       // auth infor
       protected String authType;