iverase commented on issue #16052:
URL: https://github.com/apache/lucene/issues/16052#issuecomment-4439738618

   Others method that can eliminate the declaration are:
   
   ```java
    @Override
     public final long getSumDocFreq(String field) throws IOException {
       final Terms terms = terms(field);
       if (terms == null) {
         return 0;
       }
       return terms.getSumDocFreq();
     }
   
     @Override
     public final int getDocCount(String field) {
       final Terms terms = terms(field);
       if (terms == null) {
         return 0;
       }
       return terms.getDocCount();
     }
   ```


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