Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A852217318 for ; Thu, 14 May 2015 16:30:13 +0000 (UTC) Received: (qmail 39622 invoked by uid 500); 14 May 2015 16:30:13 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 39562 invoked by uid 500); 14 May 2015 16:30:13 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 39553 invoked by uid 99); 14 May 2015 16:30:13 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2015 16:30:13 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 288DCDFC81; Thu, 14 May 2015 16:30:13 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: dkulp@apache.org To: commits@cxf.apache.org Message-Id: <9a6984017537406ab7abbcff143f3957@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: cxf git commit: Use modifiable maps during JAXB context initialization Date: Thu, 14 May 2015 16:30:13 +0000 (UTC) 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 Authored: Thu May 14 12:29:07 2015 -0400 Committer: Daniel Kulp 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 contextProperties = Collections.emptyMap(); - private List> adapters = Collections.emptyList(); - private Map marshallerProperties = Collections.emptyMap(); - private Map unmarshallerProperties = Collections.emptyMap(); + private Map contextProperties = new HashMap(); + private List> adapters = new ArrayList>(); + private Map marshallerProperties = new HashMap(); + private Map unmarshallerProperties = new HashMap(); private Unmarshaller.Listener unmarshallerListener; private Marshaller.Listener marshallerListener; private ValidationEventHandler validationEventHandler;