wu-sheng commented on a change in pull request #1069: Replaced ObjectUtils for 
java.utils.Objects methods
URL: 
https://github.com/apache/incubator-skywalking/pull/1069#discussion_r180792550
 
 

 ##########
 File path: 
apm-collector/apm-collector-cache/collector-cache-caffeine-provider/src/main/java/org/apache/skywalking/apm/collector/cache/caffeine/service/ApplicationCacheCaffeineService.java
 ##########
 @@ -47,7 +48,7 @@ public ApplicationCacheCaffeineService(ModuleManager 
moduleManager) {
     }
 
     private IApplicationCacheDAO getApplicationCacheDAO() {
-        if (ObjectUtils.isEmpty(applicationCacheDAO)) {
+        if (Objects.nonNull(applicationCacheDAO)) {
 
 Review comment:
   Wrong refactor.

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


With regards,
Apache Git Services

Reply via email to