amarkevich commented on a change in pull request #762:
URL: https://github.com/apache/cxf/pull/762#discussion_r605203489



##########
File path: 
core/src/main/java/org/apache/cxf/common/util/SpringClasspathScanner.java
##########
@@ -170,7 +170,8 @@ private static boolean isSpringInOsgi() {
 
     private ResourcePatternResolver getResolver(ClassLoader loader) {
         ResourcePatternResolver resolver = null;
-        if (IN_OSGI) {
+        inOSGI = isSpringInOsgi();

Review comment:
       move this call as initial initialization to avoid 'isSpringInOsgi' call 
for each 'getResolver' invoke




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


Reply via email to