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

bzip2
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) { fun repack(src: Path, dest: Path) {
JarInputStream(Files.newInputStream(src)).use { `in` -> JarInputStream(Files.newInputStream(src)).use { input ->
create(Files.newOutputStream(dest), `in`.manifest).use { out -> create(Files.newOutputStream(dest), input.manifest).use { output ->
while (true) { while (true) {
val entry = `in`.nextJarEntry ?: break val entry = input.nextJarEntry ?: break
out.putNextEntry(entry) output.putNextEntry(entry)
`in`.copyTo(out) input.copyTo(output)
} }
} }
} }

Loading…
Cancel
Save