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_r182915164
##########
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:
Make sense, thank you.
----------------------------------------------------------------
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