From 840474fdfcee245f49dfee08b67f6f9ba6d3de1f Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Mon, 13 May 2019 09:28:52 +0200 Subject: Refactor Marshaller - Rename jaxbmarshaller field to prevent confusion with class name. --- src/main/java/at/gv/egiz/moazs/scheme/Marshaller.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main/java/at/gv/egiz') diff --git a/src/main/java/at/gv/egiz/moazs/scheme/Marshaller.java b/src/main/java/at/gv/egiz/moazs/scheme/Marshaller.java index 2dbb6a0..3c82419 100644 --- a/src/main/java/at/gv/egiz/moazs/scheme/Marshaller.java +++ b/src/main/java/at/gv/egiz/moazs/scheme/Marshaller.java @@ -14,20 +14,20 @@ import java.io.StringWriter; */ public class Marshaller { - private final Jaxb2Marshaller marshaller; + private final Jaxb2Marshaller jaxbMarshaller; public Marshaller(Jaxb2Marshaller marshaller) { - this.marshaller = marshaller; + this.jaxbMarshaller = marshaller; } public String marshallXml(final T obj) { StringWriter sw = new StringWriter(); Result result = new StreamResult(sw); - marshaller.marshal(obj, result); + jaxbMarshaller.marshal(obj, result); return sw.toString(); } public T unmarshallXml(final InputStream xml) { - return (T) marshaller.unmarshal(new StreamSource(xml)); + return (T) jaxbMarshaller.unmarshal(new StreamSource(xml)); } } -- cgit v1.2.3