mcconnell    2003/02/05 00:30:11

  Modified:    src/java/org/apache/log/output/io FileTarget.java
  Log:
  Checkstyle corrections and javadoc additions.
  
  Revision  Changes    Path
  1.15      +8 -3      
jakarta-avalon-logkit/src/java/org/apache/log/output/io/FileTarget.java
  
  Index: FileTarget.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-logkit/src/java/org/apache/log/output/io/FileTarget.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- FileTarget.java   3 Feb 2003 17:40:14 -0000       1.14
  +++ FileTarget.java   5 Feb 2003 08:30:10 -0000       1.15
  @@ -62,6 +62,7 @@
   /**
    * A basic target that writes to a File.
    *
  + * @author <a href="mailto:[EMAIL PROTECTED]";>Avalon Development 
Team</a>
    * @author <a href="mailto:[EMAIL PROTECTED]";>Peter Donald</a>
    */
   public class FileTarget
  @@ -110,8 +111,8 @@
   
           if( isOpen() )
           {
  -            throw new IOException( "target must be closed before " +
  -                                   "file property can be set" );
  +            throw new IOException( "target must be closed before " 
  +                                   + "file property can be set" );
           }
   
           m_append = append;
  @@ -122,11 +123,15 @@
        * Open underlying file and allocate resources.
        * This method will attempt to create directories below file and
        * append to it if specified.
  +     * @exception IOException if directories can not be created or file can not be 
opened
        */
       protected synchronized void openFile()
           throws IOException
       {
  -        if( isOpen() ) close();
  +        if( isOpen() )
  +        {
  +            close();
  +        }
   
           final File file = getFile().getCanonicalFile();
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to