openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1784241 - /openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/cxf/MeecrowaveBus.java
Date Fri, 24 Feb 2017 08:35:03 GMT
Author: rmannibucau
Date: Fri Feb 24 08:35:03 2017
New Revision: 1784241

URL: http://svn.apache.org/viewvc?rev=1784241&view=rev
Log:
MEECROWAVE-17 ensure default provider setting is correctly respected

Modified:
    openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/cxf/MeecrowaveBus.java

Modified: openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/cxf/MeecrowaveBus.java
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/cxf/MeecrowaveBus.java?rev=1784241&r1=1784240&r2=1784241&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/cxf/MeecrowaveBus.java
(original)
+++ openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/cxf/MeecrowaveBus.java
Fri Feb 24 08:35:03 2017
@@ -61,9 +61,11 @@ public class MeecrowaveBus implements Bu
             final List<Object> providers =
                     ofNullable(builder.getJaxrsDefaultProviders())
                             .map(s -> Stream.of(s.split(" *, *"))
+                                    .map(String::trim)
+                                    .filter(p -> !p.isEmpty())
                                     .map(name -> {
                                         try {
-                                            return Thread.currentThread().getContextClassLoader().loadClass(s).newInstance();
+                                            return Thread.currentThread().getContextClassLoader().loadClass(name).newInstance();
                                         } catch (InstantiationException | IllegalAccessException
| ClassNotFoundException e) {
                                             throw new IllegalArgumentException(name + " can't
be created");
                                         }



Mime
View raw message