cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1354446 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
Date Wed, 27 Jun 2012 11:49:58 GMT
Author: sergeyb
Date: Wed Jun 27 11:49:57 2012
New Revision: 1354446

URL: http://svn.apache.org/viewvc?rev=1354446&view=rev
Log:
[CXF-4379] Minor optimization

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java?rev=1354446&r1=1354445&r2=1354446&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/InjectionUtils.java
Wed Jun 27 11:49:57 2012
@@ -371,10 +371,7 @@ public final class InjectionUtils {
             // as the last resort, try XmlJavaTypeAdapters
             Object valueToReplace = result != null ? result : value;
             try {
-                result = JAXBUtils.useAdapter(valueToReplace, 
-                                              JAXBUtils.getAdapter(pClass, paramAnns),
-                                              false, 
-                                              result);
+                result = JAXBUtils.convertWithAdapter(valueToReplace, pClass, paramAnns);
             } catch (Throwable ex) {
                 result = null; 
             }



Mime
View raw message