shubhamvishu commented on code in PR #13328: URL: https://github.com/apache/lucene/pull/13328#discussion_r1623688124
########## lucene/analysis/common/src/java/org/apache/lucene/analysis/synonym/word2vec/TermAndBoost.java: ########## @@ -18,14 +18,13 @@ import org.apache.lucene.util.BytesRef; -/** Wraps a term and boost */ -public class TermAndBoost { - /** the term */ - public final BytesRef term; - - /** the boost */ - public final float boost; - +/** + * Wraps a term and boost + * + * @param term the term + * @param boost the boost + */ +public record TermAndBoost(BytesRef term, float boost) { /** Creates a new TermAndBoost */ public TermAndBoost(BytesRef term, float boost) { Review Comment: Done!.....I changed others such occurrences that I could find as well -- 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: issues-unsubscr...@lucene.apache.org 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