scwhittle commented on PR #40750:
URL: https://github.com/apache/beam/pull/40750#issuecomment-6396330566

   I find it pretty confusing that MapState.computeIfAbsent doesn't match Java 
Map.computeIfAbsent behavior where it returns the existing or newly computed 
value.  
https://docs.oracle.com/javase/8/docs/api/java/util/Map.html#computeIfAbsent-K-java.util.function.Function-
   
   I think it would be better to update the comment and match Map.  Especially 
if the existing implementations are already behaving the other way.


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