mayya-sharipova commented on a change in pull request #11: URL: https://github.com/apache/lucene/pull/11#discussion_r596374710
########## File path: lucene/core/src/java/org/apache/lucene/index/FieldInfo.java ########## @@ -111,6 +111,43 @@ public FieldInfo( /** Performs internal consistency checks. Always returns true (or throws IllegalStateException) */ public boolean checkConsistency() { + return checkOptionsCorrectness( + name, + storeTermVector, + omitNorms, + storePayloads, + indexOptions, + docValuesType, + dvGen, + pointDimensionCount, + pointIndexDimensionCount, + pointNumBytes, + vectorDimension, + vectorSearchStrategy); + } + + /** + * Check correctness of FieldInfo options + * + * @throws IllegalStateException if some options are incorrect + * @return {@code true} if all options are correct + */ + public static boolean checkOptionsCorrectness( + String name, Review comment: Unfortunately I can't do anything with formatting. This is how `./gradlew :lucene:core:spotlessApply` reformats the code. ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org