xiaoshi2013 commented on a change in pull request #2566:
URL: https://github.com/apache/lucene-solr/pull/2566#discussion_r705519944



##########
File path: 
lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/NewAnalyzerTask.java
##########
@@ -42,14 +43,13 @@ public NewAnalyzerTask(PerfRunData runData) {
   
   public static final Analyzer createAnalyzer(String className) throws 
Exception{
     final Class<? extends Analyzer> clazz = 
Class.forName(className).asSubclass(Analyzer.class);
-    try {
-      // first try to use a ctor with version parameter (needed for many new 
Analyzers that have no default one anymore
-      Constructor<? extends Analyzer> cnstr = 
clazz.getConstructor(Version.class);
-      return cnstr.newInstance(Version.LATEST);

Review comment:
       Yes, I think so too.




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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to