stefan-egli commented on code in PR #1080:
URL: https://github.com/apache/jackrabbit-oak/pull/1080#discussion_r1302991985


##########
oak-store-document/src/test/java/org/apache/jackrabbit/oak/plugins/document/AbstractMongoConnectionTest.java:
##########
@@ -76,9 +78,14 @@ protected Clock getTestClock() throws InterruptedException {
 
     @After
     public void tearDownConnection() throws Exception {
-        String dbName = mongoConnection.getDBName();
+        String dbName = null;
+        if (nonNull(mongoConnection)) {

Review Comment:
   Is there an advantage of using `nonNull` here?
   
   Intuitively it makes reading slower, as it is not plain code but a function 
call that needs to be checked.



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