dweiss commented on code in PR #15874:
URL: https://github.com/apache/lucene/pull/15874#discussion_r3020537575
##########
lucene/core/src/java/org/apache/lucene/analysis/tokenattributes/BytesTermAttributeImpl.java:
##########
@@ -70,8 +70,9 @@ public void reflectWith(AttributeReflector reflector) {
@Override
public boolean equals(Object o) {
if (this == o) return true;
- if (!(o instanceof BytesTermAttributeImpl)) return false;
- BytesTermAttributeImpl that = (BytesTermAttributeImpl) o;
+ if (!(o instanceof BytesTermAttributeImpl that)) {
Review Comment:
Correction - we do run unused variable analysis (as part of ecj run); that
variable is used here but below what I could see in the diff.
--
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]