uschindler commented on code in PR #13039:
URL: https://github.com/apache/lucene/pull/13039#discussion_r1470387185
##########
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:
This looks like an unrelated change. There is a PR about this type of code
change already. It can only be applied to main branch as it requires Java 17.
--
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]