From 8493281dff4676cb191ea362f87ce1be987e2e44 Mon Sep 17 00:00:00 2001 From: tkellner Date: Thu, 8 Sep 2011 09:52:31 +0000 Subject: Comment SLUnmarshaller changes, adapt tests git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@981 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../main/java/at/gv/egiz/bku/slcommands/SLCommandFactory.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'bkucommon/src/main/java') diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/SLCommandFactory.java b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/SLCommandFactory.java index 09ccb115..6eb27160 100644 --- a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/SLCommandFactory.java +++ b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/SLCommandFactory.java @@ -94,7 +94,9 @@ public class SLCommandFactory extends SLUnmarshaller { * context. * * @param source - * the Source to unmarshall from + * the StreamSource to unmarshal from + * Note that the StreamSource _must_ contain a Reader set with + * setReader() * @return the SLCommand unmarshalled from the given * source * @throws SLRequestException @@ -113,11 +115,10 @@ public class SLCommandFactory extends SLUnmarshaller { DebugReader dr = null; if (log.isTraceEnabled() && source instanceof StreamSource) { - StreamSource streamSource = (StreamSource) source; - if (streamSource.getReader() != null) { - dr = new DebugReader(streamSource.getReader(), + if (source.getReader() != null) { + dr = new DebugReader(source.getReader(), "SLCommand unmarshalled from:\n"); - streamSource.setReader(dr); + source.setReader(dr); } } -- cgit v1.2.3