You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by dl...@apache.org on 2002/01/18 02:32:26 UTC

cvs commit: jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/utils/log Logger.java

dlr         02/01/17 17:32:26

  Modified:    src/java/org/apache/stratum/jcs/utils/log Logger.java
  Log:
  Corrected compilation warnings by changing erroneous catch of
  non-thrown checked exception to catch of RuntimeException (which I'm
  not sure even occurs in both cases).
  
  Revision  Changes    Path
  1.4       +2 -4      jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/utils/log/Logger.java
  
  Index: Logger.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-stratum/src/java/org/apache/stratum/jcs/utils/log/Logger.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -u -r1.3 -r1.4
  --- Logger.java	15 Jan 2002 21:33:36 -0000	1.3
  +++ Logger.java	18 Jan 2002 01:32:26 -0000	1.4
  @@ -299,9 +299,8 @@
           {
               LogUtils.deleteFile( new File( logDir, logname ) );
           }
  -        catch ( Exception ex )
  +        catch ( RuntimeException ignored )
           {
  -            // ignore and proceeed.
           }
           logLogger.info( "Deleted file dir=" + logroot + ", logname=" + logname );
           logLogger.flush();
  @@ -339,9 +338,8 @@
           {
               LogUtils.renameFile( logFile, toFile );
           }
  -        catch ( Exception ex )
  +        catch ( RuntimeException ignored )
           {
  -            // ignore and proceed.
           }
           logLogger.info( "Cycled log = " + logname + ", original len = " + len +
               ", new logFile.length() = " + logFile.length() + ", maxFileSize = "
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>