incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mnutt...@apache.org
Subject svn commit: r900827 - in /incubator/aries/trunk/application/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/impl: FileImpl.java ZipFileImpl.java
Date Tue, 19 Jan 2010 16:03:59 GMT
Author: mnuttall
Date: Tue Jan 19 16:03:59 2010
New Revision: 900827

URL: http://svn.apache.org/viewvc?rev=900827&view=rev
Log:
Aries-121: Fix deprecated calls to File.toURL()

Modified:
    incubator/aries/trunk/application/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/impl/FileImpl.java
    incubator/aries/trunk/application/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/impl/ZipFileImpl.java

Modified: incubator/aries/trunk/application/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/impl/FileImpl.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/application/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/impl/FileImpl.java?rev=900827&r1=900826&r2=900827&view=diff
==============================================================================
--- incubator/aries/trunk/application/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/impl/FileImpl.java
(original)
+++ incubator/aries/trunk/application/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/impl/FileImpl.java
Tue Jan 19 16:03:59 2010
@@ -112,7 +112,7 @@
 
   public URL toURL() throws MalformedURLException
   {
-    URL result = file.toURL();
+    URL result = file.toURI().toURL();
     return result;
   }
 

Modified: incubator/aries/trunk/application/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/impl/ZipFileImpl.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/application/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/impl/ZipFileImpl.java?rev=900827&r1=900826&r2=900827&view=diff
==============================================================================
--- incubator/aries/trunk/application/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/impl/ZipFileImpl.java
(original)
+++ incubator/aries/trunk/application/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/impl/ZipFileImpl.java
Tue Jan 19 16:03:59 2010
@@ -95,7 +95,7 @@
     name = "";
     lastModified = fs.lastModified();
     size = fs.length();
-    url = fs.toURL().toExternalForm();
+    url = fs.toURI().toURL().toExternalForm();
   }
 
   public IDirectory convert()



Mime
View raw message