You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2021/10/06 18:29:25 UTC
[GitHub] [maven-resolver] gnodet commented on a change in pull request #125: [MRESOLVER-204] Add a SessionData#computeIfAbsent method
gnodet commented on a change in pull request #125:
URL: https://github.com/apache/maven-resolver/pull/125#discussion_r723571888
##########
File path: maven-resolver-api/src/main/java/org/eclipse/aether/DefaultSessionData.java
##########
@@ -81,4 +82,8 @@ public Object get( Object key )
return data.get( key );
}
+ public Object computeIfAbsent( Object key, Function<Object, Object> mappingFunction )
Review comment:
The `computeIfAbsent` method on the `Map` class is a function that receives the key and computes the value.
--
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-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org