diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2008-07-13 10:26:48 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2008-07-13 10:26:48 +0000 |
commit | 65ff8feed50291ddc834006d279fc26a640d0fb5 (patch) | |
tree | 9ace2a7d9d9f8e962395bd689af3a3572649f7af /src/java/org/apache/fop/fo/extensions | |
parent | d98eb3e8a5612dd77b12613e5245da9d3461a750 (diff) | |
download | xmlgraphics-fop-65ff8feed50291ddc834006d279fc26a640d0fb5.tar.gz xmlgraphics-fop-65ff8feed50291ddc834006d279fc26a640d0fb5.zip |
Replace occurrences of File.toURL() by File.toURI().toURL() (recommended as of Java 6, where File.toURL() is deprecated)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@676297 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/extensions')
-rw-r--r-- | src/java/org/apache/fop/fo/extensions/svg/SVGElement.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java b/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java index 521f3b81b..7711130b1 100644 --- a/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java +++ b/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java @@ -92,7 +92,7 @@ public class SVGElement extends SVGObj { try { URL baseURL = new URL(getUserAgent().getBaseURL() == null - ? new java.io.File("").toURL().toExternalForm() + ? new java.io.File("").toURI().toURL().toExternalForm() : getUserAgent().getBaseURL()); if (baseURL != null) { SVGOMDocument svgdoc = (SVGOMDocument)doc; |