Skip to content
Snippets Groups Projects
Commit c765b68fb058 authored by Florent Aide's avatar Florent Aide
Browse files

Fixed a java deprecation warning

parent 88729913c199
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,9 @@
java.net.URL before = null;
try
{
before = newfile.toURL();
// use the new toURI API because the direct toURL on a java.io.File
// is deprecated
before = newfile.toURI().toURL();
}
catch (MalformedURLException e) {
e.printStackTrace();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment