reta commented on a change in pull request #407: [CXF-7716] Reduce 
StringBuilders and other performance changes.
URL: https://github.com/apache/cxf/pull/407#discussion_r182614831
 
 

 ##########
 File path: 
rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/ResourceUtils.java
 ##########
 @@ -816,12 +816,23 @@ private static UserOperation 
getOperationFromElement(Element e) {
                                                       Message m,
                                                       boolean perRequest,
                                                       Map<Class<?>, Object> 
contextValues) {
-        if (m == null) {
-            m = new MessageImpl();
-        }
         Class<?>[] params = c.getParameterTypes();
         Annotation[][] anns = c.getParameterAnnotations();
         Type[] genericTypes = c.getGenericParameterTypes();
+        return createConstructorArguments(c, m, perRequest, contextValues, 
params, anns, genericTypes);
+    }
+
+    public static Object[] createConstructorArguments(Constructor<?> c,
 
 Review comment:
   Are those new arguments (`params`, `anns`, `genericTypes`) used by the 
method?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to