Skip to content

Commit 8070bc8

Browse files
committed
update gradle, minor refactor
Signed-off-by: neo <1100909+neowu@users.noreply.github.com>
1 parent 1f7d2b3 commit 8070bc8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

buildSrc/build.gradle.kts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ repositories {
99

1010
java {
1111
toolchain {
12-
languageVersion.set(JavaLanguageVersion.of(21))
12+
// kotlin doesn't support Java 24 yet
13+
languageVersion = JavaLanguageVersion.of(21)
1314
}
1415
}
1516

1617
dependencies {
17-
implementation("com.github.spotbugs.snom:spotbugs-gradle-plugin:6.1.2")
18+
implementation("com.github.spotbugs.snom:spotbugs-gradle-plugin:6.1.13")
1819
implementation("org.flywaydb:flyway-gradle-plugin:11.2.0")
1920
implementation("org.flywaydb:flyway-mysql:11.2.0")
2021
}

core-ng/src/main/java/core/framework/internal/web/http/IPv6Ranges.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private LongLong[] sortableRange(String cidr) {
102102
rangeStart = new LongLong(address.high & highMask, 0x0000_0000_0000_0000L);
103103
rangeEnd = new LongLong(rangeStart.high | ~highMask, 0xFFFF_FFFF_FFFF_FFFFL);
104104
} else {
105-
long lowMask = -1L << (128 - maskBits);
105+
long lowMask = 0xFFFF_FFFF_FFFF_FFFFL << (128 - maskBits);
106106
rangeStart = new LongLong(address.high, address.low & lowMask);
107107
rangeEnd = new LongLong(address.high, rangeStart.low | ~lowMask);
108108
}

0 commit comments

Comments
 (0)