You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by GitBox <gi...@apache.org> on 2020/02/20 23:10:03 UTC

[GitHub] [cxf] dkulp commented on a change in pull request #597: CXF-8149 Reduce synchronization in AbstractJXBProvider

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:
users@infra.apache.org


With regards,
Apache Git Services