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

Reply via email to