coheigea commented on a change in pull request #481: CXF-7923 String.split via 
fastpath instead of precompiled Pattern
URL: https://github.com/apache/cxf/pull/481#discussion_r239782814
 
 

 ##########
 File path: core/src/main/java/org/apache/cxf/common/util/PackageUtils.java
 ##########
 @@ -57,7 +58,7 @@ public static String getSharedPackageName(List<Class<?>> 
classes) {
         List<String> currentParts = new ArrayList<>();
         for (Class<?> cls : classes) {
             if (!Proxy.isProxyClass(cls)) {
-                lParts.add(StringUtils.getParts(getPackageName(cls), "\\."));
+                lParts.add(Arrays.asList(getPackageName(cls).split("\\.")));
 
 Review comment:
   StringUtils.getParts() only added the Strings if they were non-empty, 
whereas String.split will include empty Strings. I think it should be changed 
to preserve the old behaviour. Same goes for AbstractHTTPDestination.

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