Skip to content

Commit 4cf8d33

Browse files
committed
incrementAndGet -> getAndIncrement
1 parent e87c019 commit 4cf8d33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cloud-core/src/main/java/org/incendo/cloud/CommandManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ public boolean hasCapability(final @NonNull CloudCapability capability) {
380380
final boolean cache = this.settings.get(ManagerSetting.REDUCE_REDUNDANT_PERMISSION_CHECKS);
381381
try {
382382
if (cache) {
383-
final int prev = this.threadLocalPermissionCache.get().second().incrementAndGet();
383+
final int prev = this.threadLocalPermissionCache.get().second().getAndIncrement();
384384
if (prev == 0) {
385385
// Cleanup from case where cache was enabled mid-permission check
386386
this.threadLocalPermissionCache.get().first().clear();

0 commit comments

Comments
 (0)