harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ton...@apache.org
Subject svn commit: r548148 - /harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/io/File.java
Date Mon, 18 Jun 2007 00:44:17 GMT
Author: tonywu
Date: Sun Jun 17 17:44:16 2007
New Revision: 548148

URL: http://svn.apache.org/viewvc?view=rev&rev=548148
Log:
Method toURL is deprecated in 6.0

Modified:
    harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/io/File.java

Modified: harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/io/File.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/io/File.java?view=diff&rev=548148&r1=548147&r2=548148
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/io/File.java
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/io/File.java
Sun Jun 17 17:44:16 2007
@@ -1277,15 +1277,17 @@
     }
 
     /**
-     * Answers a <code>file</code> URL for this File. The URL is System
-     * dependent and may not be transferable between different operating/file
-     * systems.
-     * 
-     * @return a <code>file</code> URL for this File.
-     * 
-     * @throws java.net.MalformedURLException
-     *             if the path cannot be transformed into an URL
-     */
+	 * Answers a <code>file</code> URL for this File. The URL is System
+	 * dependent and may not be transferable between different operating/file
+	 * systems.
+	 * 
+	 * @return a <code>file</code> URL for this File.
+	 * 
+	 * @throws java.net.MalformedURLException
+	 *             if the path cannot be transformed into an URL
+	 * @deprecated Use File.toURI() and URI.toURL() instead
+	 */
+    @Deprecated
     public URL toURL() throws java.net.MalformedURLException {
         String name = getAbsoluteName();
         if (!name.startsWith("/")) { //$NON-NLS-1$



Mime
View raw message