Skip to content

Commit f0cc83b

Browse files
committed
Bring supported JDK version to 8
1 parent 9092874 commit f0cc83b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
unitytranslate_version = 0.2.3
1+
unitytranslate_version = 0.2.4
22

33
# This isn't actually used in the download process, however it's used for the sake of caching the downloaded files.
44
# https://github.com/OpenNMT/CTranslate2/blob/master/python/ctranslate2/version.py

library/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ tasks.test {
3333
useJUnitPlatform()
3434
}
3535
kotlin {
36-
jvmToolchain(17)
36+
jvmToolchain(8)
3737
}

library/src/main/kotlin/xyz/bluspring/unitytranslate/library/models/argos/ArgosPackageIndex.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class ArgosPackageIndex(path: Path) : PackageIndex<ArgosPackage>(path, "argos")
8080
val zipPath = path.resolve("${pkg.code}_${pkg.packageVersion}.argosmodel")
8181
url.openStream().use {
8282
zipPath.outputStream().use { o ->
83-
it.transferTo(o)
83+
it.copyTo(o)
8484
}
8585
}
8686

@@ -96,7 +96,7 @@ class ArgosPackageIndex(path: Path) : PackageIndex<ArgosPackage>(path, "argos")
9696
file.createNewFile()
9797
zipFile.getInputStream(entry).use {
9898
file.outputStream().use { f ->
99-
it.transferTo(f)
99+
it.copyTo(f)
100100
}
101101
}
102102
}

library/src/main/kotlin/xyz/bluspring/unitytranslate/library/util/ConcurrentFlow.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,14 @@ suspend fun <T, S : T> ConcurrentFlow<T>.reduce(
210210
val acc = accumulator.get()
211211
if (acc === empty) {
212212
val exchanged = accumulator
213-
.weakCompareAndSetPlain(empty, v)
213+
.weakCompareAndSet(empty, v)
214214
when {
215215
exchanged -> return
216216
else -> continue
217217
}
218218
} else {
219219
val exchanged = accumulator
220-
.weakCompareAndSetPlain(acc, empty)
220+
.weakCompareAndSet(acc, empty)
221221
if (!exchanged) {
222222
continue
223223
}

0 commit comments

Comments
 (0)