aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at')
-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;
}