cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject cxf git commit: Use modifiable maps during JAXB context initialization
Date Thu, 14 May 2015 16:30:13 GMT
Repository: cxf
Updated Branches:
  refs/heads/master afa5d9e8b -> 44be5322e


Use modifiable maps during JAXB context initialization


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/44be5322
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/44be5322
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/44be5322

Branch: refs/heads/master
Commit: 44be5322e6712a58e0d1b88ad32390adbe14bfe9
Parents: afa5d9e
Author: Daniel Kulp <dkulp@apache.org>
Authored: Thu May 14 12:29:07 2015 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Thu May 14 12:29:58 2015 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java   | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/44be5322/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java
----------------------------------------------------------------------
diff --git a/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java b/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java
index 3d539fd..6f224b1 100644
--- a/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java
+++ b/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBDataBinding.java
@@ -195,10 +195,10 @@ public class JAXBDataBinding extends AbstractInterceptorProvidingDataBinding
 
     Class<?> cls;
 
-    private Map<String, Object> contextProperties = Collections.emptyMap();
-    private List<XmlAdapter<?, ?>> adapters = Collections.emptyList();
-    private Map<String, Object> marshallerProperties = Collections.emptyMap();
-    private Map<String, Object> unmarshallerProperties = Collections.emptyMap();
+    private Map<String, Object> contextProperties = new HashMap<String, Object>();
+    private List<XmlAdapter<?, ?>> adapters = new ArrayList<XmlAdapter<?,
?>>();
+    private Map<String, Object> marshallerProperties = new HashMap<String, Object>();
+    private Map<String, Object> unmarshallerProperties = new HashMap<String, Object>();
     private Unmarshaller.Listener unmarshallerListener;
     private Marshaller.Listener marshallerListener;
     private ValidationEventHandler validationEventHandler;


Mime
View raw message