Rename in/out to input/output to avoid use of backticks

master
Graham 5 years ago
parent 06de9d1449
commit f833285fa6
  1. 10
      common/src/main/java/dev/openrs2/common/io/DeterministicJarOutputStream.kt

@ -32,12 +32,12 @@ class DeterministicJarOutputStream : JarOutputStream {
}
fun repack(src: Path, dest: Path) {
JarInputStream(Files.newInputStream(src)).use { `in` ->
create(Files.newOutputStream(dest), `in`.manifest).use { out ->
JarInputStream(Files.newInputStream(src)).use { input ->
create(Files.newOutputStream(dest), input.manifest).use { output ->
while (true) {
val entry = `in`.nextJarEntry ?: break
out.putNextEntry(entry)
`in`.copyTo(out)
val entry = input.nextJarEntry ?: break
output.putNextEntry(entry)
input.copyTo(output)
}
}
}

Loading…
Cancel
Save