dkulp commented on a change in pull request #597: CXF-8149 Reduce 
synchronization in AbstractJXBProvider
URL: https://github.com/apache/cxf/pull/597#discussion_r382310225
 
 

 ##########
 File path: 
rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/AbstractJAXBProvider.java
 ##########
 @@ -517,7 +516,7 @@ public JAXBContext getClassContext(Class<?> type) throws 
JAXBException {
         return getClassContext(type, type);
     }
     protected JAXBContext getClassContext(Class<?> type, Type genericType) 
throws JAXBException {
-        final Holder<JAXBException> jaxbException = new Holder<>();
+        final JAXBException[] jaxbException = new JAXBException[] {null};
 
 Review comment:
   I agree.  Nice trick.  👍 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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