From d7e3799f5c13b1c84f9caca11fa23871fe067a27 Mon Sep 17 00:00:00 2001 From: Graham Date: Mon, 23 Dec 2019 15:09:14 +0000 Subject: [PATCH] Convert RemapTransformer to Kotlin --- .../dev/openrs2/deob/transform/RemapTransformer.java | 12 ------------ .../dev/openrs2/deob/transform/RemapTransformer.kt | 11 +++++++++++ 2 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 deob/src/main/java/dev/openrs2/deob/transform/RemapTransformer.java create mode 100644 deob/src/main/java/dev/openrs2/deob/transform/RemapTransformer.kt diff --git a/deob/src/main/java/dev/openrs2/deob/transform/RemapTransformer.java b/deob/src/main/java/dev/openrs2/deob/transform/RemapTransformer.java deleted file mode 100644 index 497e5954a2..0000000000 --- a/deob/src/main/java/dev/openrs2/deob/transform/RemapTransformer.java +++ /dev/null @@ -1,12 +0,0 @@ -package dev.openrs2.deob.transform; - -import dev.openrs2.asm.classpath.ClassPath; -import dev.openrs2.asm.transform.Transformer; -import dev.openrs2.deob.remap.TypedRemapper; - -public final class RemapTransformer extends Transformer { - @Override - protected void preTransform(ClassPath classPath) { - classPath.remap(TypedRemapper.create(classPath)); - } -} diff --git a/deob/src/main/java/dev/openrs2/deob/transform/RemapTransformer.kt b/deob/src/main/java/dev/openrs2/deob/transform/RemapTransformer.kt new file mode 100644 index 0000000000..13b822757f --- /dev/null +++ b/deob/src/main/java/dev/openrs2/deob/transform/RemapTransformer.kt @@ -0,0 +1,11 @@ +package dev.openrs2.deob.transform + +import dev.openrs2.asm.classpath.ClassPath +import dev.openrs2.asm.transform.Transformer +import dev.openrs2.deob.remap.TypedRemapper + +class RemapTransformer : Transformer() { + override fun preTransform(classPath: ClassPath) { + classPath.remap(TypedRemapper.create(classPath)) + } +}