From: srowen Date: Wed, 11 Jun 2008 13:21:02 +0000 (+0000) Subject: Fixed a tiny deprecation warning X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;ds=inline;h=6ed80637c44b04ae8de89b637041344cbe24eb62;p=zxing.git Fixed a tiny deprecation warning git-svn-id: http://zxing.googlecode.com/svn/trunk@413 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- diff --git a/javase/src/com/google/zxing/client/j2se/GUIRunner.java b/javase/src/com/google/zxing/client/j2se/GUIRunner.java index a93a5c23..d8d8633c 100644 --- a/javase/src/com/google/zxing/client/j2se/GUIRunner.java +++ b/javase/src/com/google/zxing/client/j2se/GUIRunner.java @@ -75,7 +75,7 @@ public final class GUIRunner extends JFrame { File file = fileChooser.getSelectedFile(); ImageIcon imageIcon; try { - imageIcon = new ImageIcon(file.toURL()); + imageIcon = new ImageIcon(file.toURI().toURL()); } catch (MalformedURLException mue) { throw new RuntimeException(mue); }