Skip to content
Snippets Groups Projects
Commit b9d77f3f authored by Georg Seibt's avatar Georg Seibt :nerd:
Browse files

Correctly add new Commit objects to the commit map. put(...) returns the...

Correctly add new Commit objects to the commit map. put(...) returns the previously associated value leading to commits being overwritten.
Using computeIfAbsent(...) does not add Commits multiple times and prevents empty Optionals in the first invocation.
parent a16583b9
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment