You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by oz...@apache.org on 2004/09/20 14:36:33 UTC

cvs commit: jakarta-slide/src/stores/org/apache/slide/store/file SimpleFileStore.java

ozeigermann    2004/09/20 05:36:33

  Modified:    src/stores/org/apache/slide/store/file SimpleFileStore.java
  Log:
  Removed flaw that opened a stream and closed a directly afterwards
  
  Revision  Changes    Path
  1.3       +4 -15     jakarta-slide/src/stores/org/apache/slide/store/file/SimpleFileStore.java
  
  Index: SimpleFileStore.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/stores/org/apache/slide/store/file/SimpleFileStore.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SimpleFileStore.java	20 Sep 2004 08:27:07 -0000	1.2
  +++ SimpleFileStore.java	20 Sep 2004 12:36:33 -0000	1.3
  @@ -97,23 +97,12 @@
       {
         in = new FileInputStream(file);
         NodeRevisionContent nrc = new NodeRevisionContent();
  -      nrc.setContent(new FileInputStream(file));
  +      nrc.setContent(in);
         return nrc;
       }
       catch (FileNotFoundException e)
       {
         throw new RevisionNotFoundException(uri.toString(), revisionDescriptor.getRevisionNumber());
  -    }
  -    finally
  -    {
  -      try
  -      {
  -        if (in != null) in.close();
  -      }
  -      catch (IOException e)
  -      {
  -        throw new ServiceAccessException(this, e);
  -      }
       }
     }
   
  
  
  

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