Mark all methods in a final class as non-final

Marking the individual methods as final is redundant and IDEA warns
about it.

Signed-off-by: Graham <gpe@openrs2.org>
master
Graham 2 years ago
parent aff58e5e73
commit 4cc83e6316
  1. 4
      deob-bytecode/src/main/kotlin/org/openrs2/deob/bytecode/transform/FinalMethodTransformer.kt

@ -22,7 +22,9 @@ public class FinalMethodTransformer : Transformer() {
} }
private fun isMethodFinal(classPath: ClassPath, clazz: ClassNode, method: MethodNode): Boolean { private fun isMethodFinal(classPath: ClassPath, clazz: ClassNode, method: MethodNode): Boolean {
if (method.name == "<init>") { if ((clazz.access and Opcodes.ACC_FINAL) != 0) {
return false
} else if (method.name == "<init>") {
return false return false
} else if ((method.access and (Opcodes.ACC_ABSTRACT or Opcodes.ACC_PRIVATE or Opcodes.ACC_STATIC)) != 0) { } else if ((method.access and (Opcodes.ACC_ABSTRACT or Opcodes.ACC_PRIVATE or Opcodes.ACC_STATIC)) != 0) {
return false return false

Loading…
Cancel
Save