Revision: 5583 http://sourceforge.net/p/jump-pilot/code/5583 Author: michaudm Date: 2017-11-26 17:55:02 +0000 (Sun, 26 Nov 2017) Log Message: ----------- Replace usage of a sun package method by standard api call
Modified Paths: -------------- core/trunk/src/com/vividsolutions/jump/workbench/plugin/PlugInClassLoader.java Modified: core/trunk/src/com/vividsolutions/jump/workbench/plugin/PlugInClassLoader.java =================================================================== --- core/trunk/src/com/vividsolutions/jump/workbench/plugin/PlugInClassLoader.java 2017-11-26 14:15:47 UTC (rev 5582) +++ core/trunk/src/com/vividsolutions/jump/workbench/plugin/PlugInClassLoader.java 2017-11-26 17:55:02 UTC (rev 5583) @@ -1,7 +1,5 @@ package com.vividsolutions.jump.workbench.plugin; -import sun.net.www.ParseUtil; - import java.io.File; import java.io.IOException; import java.net.MalformedURLException; @@ -144,13 +142,13 @@ super.addURL( getFileURL(new File(path)) ); } - static URL getFileURL(File file) { + private static URL getFileURL(File file) { try { file = file.getCanonicalFile(); } catch (IOException e) {} try { - return ParseUtil.fileToEncodedURL(file); + return file.toURI().toURL(); } catch (MalformedURLException e) { // Should never happen since we specify the protocol... throw new InternalError(); ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel