From c0ba022bffc30336fe1ffe552e184147a87eee79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20B=C3=B6hme?= Date: Mon, 2 Feb 2015 09:09:13 +0100 Subject: [PATCH] Fix compile error in MorphVis With the update to metafacture-core 3.0.0 the interface of AbstractMetamorphDomWalker changed. --- src/main/java/org/culturegraph/mf/runner/MorphVis.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/culturegraph/mf/runner/MorphVis.java b/src/main/java/org/culturegraph/mf/runner/MorphVis.java index 8ac5dc564..f2a78bd18 100644 --- a/src/main/java/org/culturegraph/mf/runner/MorphVis.java +++ b/src/main/java/org/culturegraph/mf/runner/MorphVis.java @@ -23,11 +23,12 @@ import java.io.Writer; import org.culturegraph.mf.morph.MorphVisualizer; +import org.xml.sax.InputSource; /** * Generates a graphviz dot file based on a Metamorph definition. - * + * * @author Markus Michael Geipel */ public final class MorphVis { @@ -39,7 +40,7 @@ private MorphVis() {/* no instances */ /** * @param args - * + * * @throws IOException */ public static void main(final String[] args) throws IOException { @@ -54,8 +55,8 @@ public static void main(final String[] args) throws IOException { return; } final MorphVisualizer visualizer = new MorphVisualizer(out); - visualizer.walk(new FileReader(args[0])); + visualizer.walk(new InputSource(new FileReader(args[0]))); } - + }