Fix Counter#decrement recursive call (#5665)

This commit is contained in:
Emily 2021-05-17 15:19:02 -03:00
parent 240b858deb
commit 892b6002e4

View File

@ -2041,7 +2041,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ return increment(key, 1);
+ }
+ public long decrement(@Nullable T key, long amount) {
+ return decrement(key, -amount);
+ return increment(key, -amount);
+ }
+ public long increment(@Nullable T key, long amount) {
+ Long count = this.getCount(key);