This is an automated email from the ASF dual-hosted git repository.

sergeyb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new cc34899  Removing unused code in JAXBUtils, spotted by Colm
cc34899 is described below

commit cc34899738456bcad5e216cf76f60b65cfa6805b
Author: Sergey Beryozkin <[email protected]>
AuthorDate: Thu Oct 19 16:04:40 2017 +0100

    Removing unused code in JAXBUtils, spotted by Colm
---
 .../jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXBUtils.java      | 3 ---
 1 file changed, 3 deletions(-)

diff --git 
a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXBUtils.java 
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXBUtils.java
index 20623ec..5e6196f 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXBUtils.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXBUtils.java
@@ -126,9 +126,6 @@ public final class JAXBUtils {
                                     boolean marshal,
                                     Object defaultValue) {
         if (typeAdapter != null) {
-            if 
(InjectionUtils.isSupportedCollectionOrArray(typeAdapter.value().getClass())) {
-                return obj;
-            }
             try {
                 @SuppressWarnings("rawtypes")
                 XmlAdapter xmlAdapter = typeAdapter.value().newInstance();

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to