bvahdat commented on code in PR #9339:
URL: https://github.com/apache/camel/pull/9339#discussion_r1104671408


##########
components/camel-caffeine/src/main/java/org/apache/camel/component/caffeine/resume/CaffeineCache.java:
##########
@@ -57,7 +58,7 @@ public CaffeineCache(Cache<K, Object> cache, long cacheSize) {
 
     @Override
     public boolean contains(K key, Object entry) {
-        assert key != null;
+        ObjectHelper.notNull(key, "key");

Review Comment:
   > The assert only adds a layer of check when running in tests as 
surefire/failsafe will enable native Java assertions by default in those cases.
   
   But this is not a test running under surefire/failsafe control. So the same 
reasoning applies here as :point_up_2:.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to