You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by lu...@apache.org on 2004/10/04 22:57:51 UTC

cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler AntCompiler.java JDTCompiler.java

luehe       2004/10/04 13:57:51

  Modified:    jasper2/src/share/org/apache/jasper/compiler
                        AntCompiler.java JDTCompiler.java
  Log:
  Don't calculate t2 unless needed
  
  Revision  Changes    Path
  1.5       +1 -1      jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/AntCompiler.java
  
  Index: AntCompiler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/AntCompiler.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AntCompiler.java	21 Sep 2004 19:36:12 -0000	1.4
  +++ AntCompiler.java	4 Oct 2004 20:57:51 -0000	1.5
  @@ -240,8 +240,8 @@
               }
           }
           
  -        long t2=System.currentTimeMillis();
           if( log.isDebugEnabled() ) {
  +            long t2=System.currentTimeMillis();
               log.debug( "Compiled " + ctxt.getServletJavaFileName() + " " + (t2-t1) + "ms");
           }
           
  
  
  
  1.6       +1 -1      jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JDTCompiler.java
  
  Index: JDTCompiler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/JDTCompiler.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- JDTCompiler.java	4 Oct 2004 19:42:33 -0000	1.5
  +++ JDTCompiler.java	4 Oct 2004 20:57:51 -0000	1.6
  @@ -386,8 +386,8 @@
               errDispatcher.javacError(jeds);
           }
           
  -        long t2=System.currentTimeMillis();
           if( log.isDebugEnabled() ) {
  +            long t2=System.currentTimeMillis();
               log.debug( "Compiled " + ctxt.getServletJavaFileName() + " " + (t2-t1) + "ms");
           }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org