aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-10 11:30:42 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-10 11:30:42 +0200
commit45852c07dae33ed430a9b92be9b06ec675f68322 (patch)
treec6c86e66340a79a3bdcd412c3d5772d62f751289 /src/main
parent3e50af52334df4f33b4af70e10f61ee36dbc546b (diff)
downloadmoa-zs-45852c07dae33ed430a9b92be9b06ec675f68322.tar.gz
moa-zs-45852c07dae33ed430a9b92be9b06ec675f68322.tar.bz2
moa-zs-45852c07dae33ed430a9b92be9b06ec675f68322.zip
Refactor: Eliminate Non-Compliant HashMap Initialization
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/gv/egiz/moazs/config/MarshallerConfig.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/config/MarshallerConfig.java b/src/main/java/at/gv/egiz/moazs/config/MarshallerConfig.java
index 62e2f83..bde33c1 100644
--- a/src/main/java/at/gv/egiz/moazs/config/MarshallerConfig.java
+++ b/src/main/java/at/gv/egiz/moazs/config/MarshallerConfig.java
@@ -31,10 +31,10 @@ public class MarshallerConfig {
at.gv.zustellung.app2mzs.xsd.persondata.ObjectFactory.class,
at.gv.zustellung.msg.xsd.ObjectFactory.class);
- marshaller.setMarshallerProperties(new HashMap<String, Object>() {{
- put(javax.xml.bind.Marshaller.JAXB_FORMATTED_OUTPUT, true);
- put("com.sun.xml.bind.namespacePrefixMapper", mzsMapper());
- }});
+ var map = new HashMap<String, Object>();
+ map.put(javax.xml.bind.Marshaller.JAXB_FORMATTED_OUTPUT, true);
+ map.put("com.sun.xml.bind.namespacePrefixMapper", mzsMapper());
+ marshaller.setMarshallerProperties(map);
return marshaller;
}
@@ -47,10 +47,10 @@ public class MarshallerConfig {
at.gv.zustellung.msg.xsd.ObjectFactory.class,
at.gv.zustellung.msg.xsd.persondata.ObjectFactory.class);
- marshaller.setMarshallerProperties(new HashMap<String, Object>() {{
- put(javax.xml.bind.Marshaller.JAXB_FORMATTED_OUTPUT, true);
- put("com.sun.xml.bind.namespacePrefixMapper", msgMapper());
- }});
+ var map = new HashMap<String, Object>();
+ map.put(javax.xml.bind.Marshaller.JAXB_FORMATTED_OUTPUT, true);
+ map.put("com.sun.xml.bind.namespacePrefixMapper", msgMapper());
+ marshaller.setMarshallerProperties(map);
return marshaller;
}