Update spotless to 8.1.0 and shadow to 8.3.9
This commit is contained in:
1 parent
aebf1b0519
commit
7db3767249
2 files changed
+7
-11
No files matched your search
+2
-2
@@ -4,8 +4,8 @@ import java.io.BufferedReader
|
||||
plugins {
|
||||
id("java") // Import Java plugin.
|
||||
id("java-library") // Import Java Library plugin.
|
||||
id("com.diffplug.spotless") version "7.0.4" // Import Spotless plugin.
|
||||
id("com.gradleup.shadow") version "8.3.6" // Import Shadow plugin.
|
||||
id("com.diffplug.spotless") version "8.1.0" // Import Spotless plugin.
|
||||
id("com.gradleup.shadow") version "8.3.9" // Import Shadow plugin.
|
||||
eclipse // Import Eclipse plugin.
|
||||
kotlin("jvm") version "2.1.21" // Import Kotlin JVM plugin.
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
package net.trueog.diamondbankog
|
||||
|
||||
import net.trueog.diamondbankog.DiamondBankException.InvalidArgumentException
|
||||
import net.trueog.diamondbankog.PostgreSQL.PlayerShards
|
||||
import net.trueog.diamondbankog.PostgreSQL.ShardType
|
||||
import java.sql.SQLException
|
||||
import java.util.*
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
import java.util.concurrent.atomic.AtomicInteger
|
||||
import net.trueog.diamondbankog.DiamondBankException.InvalidArgumentException
|
||||
import net.trueog.diamondbankog.PostgreSQL.PlayerShards
|
||||
import net.trueog.diamondbankog.PostgreSQL.ShardType
|
||||
|
||||
internal class BalanceManager {
|
||||
val cache = Cache()
|
||||
@@ -81,9 +81,7 @@ internal class BalanceManager {
|
||||
}
|
||||
|
||||
suspend fun getTotalShards(uuid: UUID): Result<Long> {
|
||||
val anyBeingModified = beingModified.any {
|
||||
it.key.first == uuid && it.value.get() > 0
|
||||
}
|
||||
val anyBeingModified = beingModified.any { it.key.first == uuid && it.value.get() > 0 }
|
||||
if (anyBeingModified) {
|
||||
return postgreSQL.getTotalShards(uuid)
|
||||
}
|
||||
@@ -102,9 +100,7 @@ internal class BalanceManager {
|
||||
}
|
||||
|
||||
suspend fun getAllShards(uuid: UUID): Result<PlayerShards> {
|
||||
val anyBeingModified = beingModified.any {
|
||||
it.key.first == uuid && it.value.get() > 0
|
||||
}
|
||||
val anyBeingModified = beingModified.any { it.key.first == uuid && it.value.get() > 0 }
|
||||
if (anyBeingModified) {
|
||||
return postgreSQL.getAllShards(uuid)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user