Permalink
Browse files

Use URI.create instead of new URI (h/t to Björn Kautler)

  • Loading branch information...
ndw committed Aug 15, 2014
1 parent 6e168f6 commit 630a25649087741f4b88b2b3579fb0cce7fee5f8
Showing with 2 additions and 10 deletions.
  1. +2 −10 src/com/xmlcalabash/core/XProcRuntime.java
@@ -227,11 +227,7 @@ public XProcRuntime(XProcConfiguration config) {
profile = config.profile;
profileHash = new Hashtable<XStep, Calendar> ();
profileWriter = new TreeWriter(this);
try {
profileWriter.startDocument(new URI("http://xmlcalabash.com/output/profile.xml"));
} catch (URISyntaxException use) {
// nop;
}
profileWriter.startDocument(URI.create("http://xmlcalabash.com/output/profile.xml"));
}
for (String className : config.extensionFunctions) {
@@ -555,11 +551,7 @@ private synchronized void reset() {
if (profile != null) {
profileHash = new Hashtable<XStep, Calendar>();
profileWriter = new TreeWriter(this);
try {
profileWriter.startDocument(new URI("http://xmlcalabash.com/output/profile.xml"));
} catch (URISyntaxException use) {
// nop;
}
profileWriter.startDocument(URI.create("http://xmlcalabash.com/output/profile.xml"));
}
}

0 comments on commit 630a256

Please sign in to comment.