From 4953c017b35e27cc58989a979f9ffcc3901b2401 Mon Sep 17 00:00:00 2001 From: EpicPlayerA10 Date: Mon, 14 Oct 2024 14:48:54 +0200 Subject: [PATCH] update contributing.md --- CONTRIBUTING.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3c527c4..e8c648f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -92,7 +92,7 @@ import uwu.narumi.deobfuscator.api.transformer.Transformer; public class SomeTransformer extends Transformer { @Override protected void transform() throws Exception { - classes().forEach(classWrapper -> classWrapper.methods().forEach(methodNode -> { + scopedClasses().forEach(classWrapper -> classWrapper.methods().forEach(methodNode -> { // Code here })); } @@ -110,7 +110,7 @@ import java.util.Arrays; public class SomeTransformer extends Transformer { @Override protected void transform() throws Exception { - classes().forEach(classWrapper -> classWrapper.methods().forEach(methodNode -> { + scopedClasses().forEach(classWrapper -> classWrapper.methods().forEach(methodNode -> { // Iterate over all LDC instructions in the method Arrays.stream(methodNode.instructions.toArray()) @@ -144,7 +144,7 @@ import java.util.Arrays; public class SomeTransformer extends Transformer { @Override protected void transform() throws Exception { - classes().forEach(classWrapper -> classWrapper.methods().forEach(methodNode -> { + scopedClasses().forEach(classWrapper -> classWrapper.methods().forEach(methodNode -> { MethodContext methodContext = MethodContext.framed(classWrapper, methodNode); // Find all System.out.println calls and replace the string with "Bye, World!"