uschindler commented on code in PR #13039: URL: https://github.com/apache/lucene/pull/13039#discussion_r1470388288
########## lucene/core/src/java/org/apache/lucene/analysis/tokenattributes/PayloadAttributeImpl.java: ########## @@ -62,8 +62,7 @@ public boolean equals(Object other) { return true; } - if (other instanceof PayloadAttribute) { - PayloadAttributeImpl o = (PayloadAttributeImpl) other; + if (other instanceof PayloadAttributeImpl o) { Review Comment: See this PR: #12295 -- 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