You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/07/17 17:19:41 UTC

[GitHub] [pulsar] merlimat commented on a change in pull request #7582: #683 - Replace internal proprietary sun.reflect.ReflectionFactory API with Objenesis API

merlimat commented on a change in pull request #7582:
URL: https://github.com/apache/pulsar/pull/7582#discussion_r456572484



##########
File path: testmocks/src/main/java/org/apache/zookeeper/MockZooKeeper.java
##########
@@ -67,6 +66,10 @@
     private int readOpDelayMs;
 
     private ReentrantLock mutex;
+    
+    //see details of Objenesis caching - http://objenesis.org/details.html
+    //see supported jvms - https://github.com/easymock/objenesis/blob/master/SupportedJVMs.md
+    private static Objenesis objenesis = new ObjenesisStd();

Review comment:
       ```suggestion
       private static final Objenesis objenesis = new ObjenesisStd();
   ```




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