File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
spring-oxm/src/main/java/org/springframework/oxm/xmlbeans Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2012 the original author or authors.
2
+ * Copyright 2002-2014 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
30
30
* in the {@link XmlBeansMarshaller}.
31
31
*
32
32
* @author Arjen Poutsma
33
+ * @author Juergen Hoeller
33
34
* @since 3.0
34
35
* @see XmlOptions
35
36
* @see #setOptions(java.util.Map)
36
37
* @see XmlBeansMarshaller#setXmlOptions(XmlOptions)
37
38
*/
38
39
public class XmlOptionsFactoryBean implements FactoryBean <XmlOptions > {
39
40
40
- private XmlOptions xmlOptions ;
41
+ private XmlOptions xmlOptions = new XmlOptions () ;
41
42
42
43
43
44
/**
@@ -51,8 +52,8 @@ public class XmlOptionsFactoryBean implements FactoryBean<XmlOptions> {
51
52
public void setOptions (Map <String , ?> optionsMap ) {
52
53
this .xmlOptions = new XmlOptions ();
53
54
if (optionsMap != null ) {
54
- for (String option : optionsMap .keySet ()) {
55
- this .xmlOptions .put (option , optionsMap . get ( option ));
55
+ for (Map . Entry < String , ?> option : optionsMap .entrySet ()) {
56
+ this .xmlOptions .put (option . getKey (), option . getValue ( ));
56
57
}
57
58
}
58
59
}
You can’t perform that action at this time.
0 commit comments