commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ima...@apache.org
Subject svn commit: r160053 - in jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs: impl/FileTypeMap.java provider/local/LocalFileSystem.java provider/tar/TarFileName.java provider/zip/ZipFileName.java
Date Mon, 04 Apr 2005 16:13:30 GMT
Author: imario
Date: Mon Apr  4 09:13:28 2005
New Revision: 160053

URL: http://svn.apache.org/viewcvs?view=rev&rev=160053
Log:
Some minor code cleanup

Reported by: Tobias Kalbitz

Removed:
    jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/tar/TarFileName.java
    jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/zip/ZipFileName.java
Modified:
    jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/impl/FileTypeMap.java
    jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFileSystem.java

Modified: jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/impl/FileTypeMap.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/impl/FileTypeMap.java?view=diff&r1=160052&r2=160053
==============================================================================
--- jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/impl/FileTypeMap.java
(original)
+++ jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/impl/FileTypeMap.java
Mon Apr  4 09:13:28 2005
@@ -57,7 +57,7 @@
         // Check the file's mime type for a match
         final FileContent content = file.getContent();
         // final String mimeType = (String) content.getAttribute("content-type");
-        final String mimeType = (String) content.getContentInfo().getContentType();
+        final String mimeType = content.getContentInfo().getContentType();
         if (mimeType != null)
         {
             return (String) mimeTypeMap.get(mimeType);

Modified: jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFileSystem.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFileSystem.java?view=diff&r1=160052&r2=160053
==============================================================================
--- jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFileSystem.java
(original)
+++ jakarta/commons/sandbox/vfs/trunk/src/java/org/apache/commons/vfs/provider/local/LocalFileSystem.java
Mon Apr  4 09:13:28 2005
@@ -53,7 +53,6 @@
     {
         // Create the file
         String fileName = rootFile + name.getPath();
-        fileName = fileName;
         return new LocalFile(this, fileName, name);
     }
 



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


Mime
View raw message