commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/impl Resource.java
Date Fri, 01 Nov 2002 03:29:53 GMT
adammurdoch    2002/10/31 19:29:53

  Modified:    vfs/src/java/org/apache/commons/vfs/provider
                        DefaultURLStreamHandler.java
               vfs/src/java/org/apache/commons/vfs/provider/zip
                        ZipFileObject.java
               vfs/src/java/org/apache/commons/vfs/impl Resource.java
  Log:
  tidy-ups.
  
  Revision  Changes    Path
  1.5       +0 -1      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/DefaultURLStreamHandler.java
  
  Index: DefaultURLStreamHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/DefaultURLStreamHandler.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DefaultURLStreamHandler.java	27 Oct 2002 08:16:20 -0000	1.4
  +++ DefaultURLStreamHandler.java	1 Nov 2002 03:29:53 -0000	1.5
  @@ -56,7 +56,6 @@
   package org.apache.commons.vfs.provider;
   
   import java.io.IOException;
  -import java.net.ProtocolException;
   import java.net.URL;
   import java.net.URLConnection;
   import java.net.URLStreamHandler;
  
  
  
  1.8       +1 -3      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/zip/ZipFileObject.java
  
  Index: ZipFileObject.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/provider/zip/ZipFileObject.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- ZipFileObject.java	31 Oct 2002 10:26:54 -0000	1.7
  +++ ZipFileObject.java	1 Nov 2002 03:29:53 -0000	1.8
  @@ -158,9 +158,7 @@
       }
   
       /**
  -     * Called from {@link DefaultFileContent#getLastModifiedTime}.
  -     * The default is to just throw an exception so filesystems must
  -     * override it to use it.
  +     * Returns the last modified time of this file.
        */
       protected long doGetLastModifiedTime() throws Exception
       {
  
  
  
  1.4       +4 -6      jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/impl/Resource.java
  
  Index: Resource.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/vfs/src/java/org/apache/commons/vfs/impl/Resource.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Resource.java	27 Oct 2002 08:15:01 -0000	1.3
  +++ Resource.java	1 Nov 2002 03:29:53 -0000	1.4
  @@ -57,10 +57,8 @@
   
   import java.io.IOException;
   import java.net.MalformedURLException;
  -import java.net.ProtocolException;
   import java.net.URL;
   import org.apache.commons.vfs.FileObject;
  -import org.apache.commons.vfs.FileSystemException;
   import org.apache.commons.vfs.FileUtil;
   
   /**
  @@ -74,8 +72,8 @@
    */
   class Resource
   {
  -    private FileObject root;
  -    private FileObject resource;
  +    private final FileObject root;
  +    private final FileObject resource;
   
       /**
        * Creates a new instance.
  @@ -83,7 +81,7 @@
        * @param root The code source FileObject.
        * @param resource The resource of the FileObject.
        */
  -    Resource( FileObject root, FileObject resource )
  +    Resource( final FileObject root, final FileObject resource )
       {
           this.root = root;
           this.resource = resource;
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message