Replace Paths.get() with Path.of()

Signed-off-by: Graham <gpe@openrs2.org>
bzip2
Graham 4 years ago
parent 64e85a43de
commit b61992a20f
  1. 6
      deob/src/main/kotlin/org/openrs2/deob/Deobfuscator.kt

@ -5,7 +5,7 @@ import org.openrs2.decompiler.Decompiler
import org.openrs2.deob.ast.AstDeobfuscator
import org.openrs2.deob.bytecode.BytecodeDeobfuscator
import org.openrs2.deob.util.Module
import java.nio.file.Paths
import java.nio.file.Path
import javax.inject.Inject
import javax.inject.Singleton
@ -18,8 +18,8 @@ public class Deobfuscator @Inject constructor(
public fun run() {
logger.info { "Deobfuscating bytecode" }
bytecodeDeobfuscator.run(
input = Paths.get("nonfree/lib"),
output = Paths.get("nonfree/var/cache/deob")
input = Path.of("nonfree/lib"),
output = Path.of("nonfree/var/cache/deob")
)
logger.info { "Decompiling" }

Loading…
Cancel
Save