We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3590fac commit 449b5fcCopy full SHA for 449b5fc
1 file changed
cloud-core/src/main/java/org/incendo/cloud/CommandManager.java
@@ -413,7 +413,7 @@ public boolean hasCapability(final @NonNull CloudCapability capability) {
413
final boolean cache = this.settings.get(ManagerSetting.REDUCE_REDUNDANT_PERMISSION_CHECKS);
414
try {
415
if (cache) {
416
- final int prev = this.threadLocalPermissionCache.get().second().incrementAndGet();
+ final int prev = this.threadLocalPermissionCache.get().second().getAndIncrement();
417
if (prev == 0) {
418
// Cleanup from case where cache was enabled mid-permission check
419
this.threadLocalPermissionCache.get().first().clear();
0 commit comments