johnament commented on a change in pull request #366: Handle 
ResponseExceptionMappers
URL: https://github.com/apache/cxf/pull/366#discussion_r161377352
 
 

 ##########
 File path: 
rt/rs/microprofile-client/src/main/java/org/apache/cxf/microprofile/client/MicroProfileClientProviderFactory.java
 ##########
 @@ -91,18 +91,14 @@ protected void setProviders(boolean custom, boolean 
busGlobal, Object... provide
 
     public List<ResponseExceptionMapper<?>> 
createResponseExceptionMapper(Message m, Class<?> paramType) {
 
-        List<ResponseExceptionMapper<?>> candidates = new LinkedList<>();
-
-        for (ProviderInfo<ResponseExceptionMapper<?>> em : 
responseExceptionMappers) {
-            if (handleMapper(em, paramType, m, ResponseExceptionMapper.class, 
true)) {
-                candidates.add(em.getProvider());
-            }
-        }
-        if (candidates.size() == 0) {
+        if (responseExceptionMappers.isEmpty()) {
 
 Review comment:
   They should never actually be empty, since we require the default one to be 
registered.

----------------------------------------------------------------
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