Skip to content

Commit

Permalink
upgrade lincheck
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Apr 22, 2024
1 parent 4ba734a commit 5765921
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,6 @@ public boolean containsKey(@Param(name = "key") int key) {
return cache.asMap().containsKey(key);
}

@Operation
public boolean containsValue(@Param(name = "value") int value) {
return cache.asMap().containsValue(value);
}

@Operation
public Integer get_asMap(@Param(name = "key") int key) {
return cache.asMap().get(key);
Expand Down Expand Up @@ -169,7 +164,7 @@ public Integer computeIfPresent(@Param(name = "key") int key,

@Operation
public Integer compute(@Param(name = "key") int key, @Param(name = "value") int nextValue) {
return cache.asMap().compute(key, (k, v) -> nextValue);
return cache.asMap().merge(key, nextValue, (oldValue, newValue) -> oldValue + newValue);
}

@Operation
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ guava = "33.1.0-jre"
guice = "6.0.0"
h2 = "2.2.224"
hamcrest = "2.2"
hazelcast = "5.3.7"
hazelcast = "5.4.0"
httpclient = "4.5.14"
idea = "1.1.8"
jackrabbit = "1.62.0"
Expand All @@ -57,15 +57,15 @@ jfreechart = "1.5.4"
jgit = "6.9.0.202403050737-r"
jmh-core = "1.37"
jmh-plugin = "0.7.2"
jmh-report = "0.9.0"
jmh-report = "0.9.6"
joor = "0.9.15"
json-bind = "1.0"
jsoup = "1.17.2"
junit-testng = "1.0.5"
junit4 = "4.13.2"
junit5 = "5.10.2"
kotlin = "1.9.23"
lincheck = "2.29"
lincheck = "2.30"
mockito = "5.11.0"
nexus-publish = "2.0.0"
nullaway-core = "0.10.25"
Expand Down

0 comments on commit 5765921

Please sign in to comment.