From ba50189a888c55ca72c592dbcc02fcf2282041ae Mon Sep 17 00:00:00 2001 From: EpicPlayerA10 Date: Sat, 5 Oct 2024 01:12:28 +0200 Subject: [PATCH] pass path to isClass --- .../src/main/java/uwu/narumi/deobfuscator/Deobfuscator.java | 2 +- .../other/impl/clean/peephole/UselessPopCleanTransformer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deobfuscator-impl/src/main/java/uwu/narumi/deobfuscator/Deobfuscator.java b/deobfuscator-impl/src/main/java/uwu/narumi/deobfuscator/Deobfuscator.java index 1bfa3f7..c7ead00 100644 --- a/deobfuscator-impl/src/main/java/uwu/narumi/deobfuscator/Deobfuscator.java +++ b/deobfuscator-impl/src/main/java/uwu/narumi/deobfuscator/Deobfuscator.java @@ -101,7 +101,7 @@ private void loadInput() { private void loadClass(String pathInJar, byte[] bytes) { try { - if (ClassHelper.isClass(bytes)) { + if (ClassHelper.isClass(pathInJar, bytes)) { ClassWrapper classWrapper = ClassHelper.loadClass( pathInJar, bytes, diff --git a/deobfuscator-transformers/src/main/java/uwu/narumi/deobfuscator/core/other/impl/clean/peephole/UselessPopCleanTransformer.java b/deobfuscator-transformers/src/main/java/uwu/narumi/deobfuscator/core/other/impl/clean/peephole/UselessPopCleanTransformer.java index 8272319..b6747b2 100644 --- a/deobfuscator-transformers/src/main/java/uwu/narumi/deobfuscator/core/other/impl/clean/peephole/UselessPopCleanTransformer.java +++ b/deobfuscator-transformers/src/main/java/uwu/narumi/deobfuscator/core/other/impl/clean/peephole/UselessPopCleanTransformer.java @@ -37,7 +37,7 @@ protected void transform(ClassWrapper scope, Context context) throws Exception { /** * Tries to remove pop's source values * - * @param insnContext Instructon context + * @param insnContext Instruction context * @return If removed */ private boolean tryRemovePop(InsnContext insnContext) {