ultramancode opened a new pull request, #24182:
URL: https://github.com/apache/kafka/pull/24182

   Remove the unused `durationParsed.negated().addTo(now)` call in 
`GroupOffsetsResetter#resetByDuration`.
   
   `Instant` is immutable and the result is discarded, so the call has no 
effect. The reset timestamp is already computed by `now.minus(durationParsed)` 
on the next line.
   
   The call is a leftover from the old `javax.xml.datatype.Duration` code, 
where `addTo(Date)` updated `now` in place.


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

Reply via email to