Remove @JvmStatic annotations

We only need to keep it on the main() methods for the moment.
bzip2
Graham 5 years ago
parent 1647a3e641
commit 86fe02f32d
  1. 1
      asm/src/main/java/dev/openrs2/asm/InsnMatcher.kt
  2. 2
      asm/src/main/java/dev/openrs2/asm/classpath/Library.kt
  3. 1
      asm/src/main/java/dev/openrs2/asm/remap/ClassForNameRemapper.kt
  4. 1
      deob/src/main/java/dev/openrs2/deob/SignedClassUtils.kt
  5. 1
      deob/src/main/java/dev/openrs2/deob/remap/PrefixRemapper.kt

@ -255,7 +255,6 @@ class InsnMatcher private constructor(private val regex: Regex) {
throw IllegalArgumentException("$opcode is not a valid opcode or opcode group") throw IllegalArgumentException("$opcode is not a valid opcode or opcode group")
} }
@JvmStatic
fun compile(regex: String): InsnMatcher { fun compile(regex: String): InsnMatcher {
val pattern = StringBuilder() val pattern = StringBuilder()
val opcode = StringBuilder() val opcode = StringBuilder()

@ -119,7 +119,6 @@ class Library constructor() : Iterable<ClassNode> {
private const val JAR_SUFFIX = ".jar" private const val JAR_SUFFIX = ".jar"
private val GZIP_HEADER = byteArrayOf(0x1F, 0x8B.toByte()) private val GZIP_HEADER = byteArrayOf(0x1F, 0x8B.toByte())
@JvmStatic
fun readJar(path: Path): Library { fun readJar(path: Path): Library {
logger.info { "Reading jar $path" } logger.info { "Reading jar $path" }
@ -145,7 +144,6 @@ class Library constructor() : Iterable<ClassNode> {
return library return library
} }
@JvmStatic
fun readPack(path: Path): Library { fun readPack(path: Path): Library {
logger.info { "Reading pack $path" } logger.info { "Reading pack $path" }

@ -22,7 +22,6 @@ object ClassForNameRemapper {
&& invokestatic.desc == "(Ljava/lang/String;)Ljava/lang/Class;" && invokestatic.desc == "(Ljava/lang/String;)Ljava/lang/Class;"
} }
@JvmStatic
fun remap(remapper: Remapper, method: MethodNode) { fun remap(remapper: Remapper, method: MethodNode) {
INVOKE_MATCHER.match(method).filter(ClassForNameRemapper::isClassForName).forEach { INVOKE_MATCHER.match(method).filter(ClassForNameRemapper::isClassForName).forEach {
val ldc = it[0] as LdcInsnNode val ldc = it[0] as LdcInsnNode

@ -15,7 +15,6 @@ object SignedClassUtils {
private val LOAD_SIGNED_CLASS_MATCHER = private val LOAD_SIGNED_CLASS_MATCHER =
InsnMatcher.compile("LDC INVOKESTATIC ASTORE ALOAD GETFIELD ALOAD INVOKEVIRTUAL ALOAD INVOKEVIRTUAL POP") InsnMatcher.compile("LDC INVOKESTATIC ASTORE ALOAD GETFIELD ALOAD INVOKEVIRTUAL ALOAD INVOKEVIRTUAL POP")
@JvmStatic
fun move(loader: Library, client: Library, signLink: Library) { fun move(loader: Library, client: Library, signLink: Library) {
// find signed classes // find signed classes
val signedClasses = findSignedClasses(loader) val signedClasses = findSignedClasses(loader)

@ -5,7 +5,6 @@ import org.objectweb.asm.commons.Remapper
import org.objectweb.asm.commons.SimpleRemapper import org.objectweb.asm.commons.SimpleRemapper
object PrefixRemapper { object PrefixRemapper {
@JvmStatic
fun create(library: Library, prefix: String): Remapper { fun create(library: Library, prefix: String): Remapper {
val mapping = mutableMapOf<String, String>() val mapping = mutableMapOf<String, String>()

Loading…
Cancel
Save