-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
188472b
commit 07ed1b7
Showing
3 changed files
with
88 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
.../java/uwu/narumi/deobfuscator/core/other/impl/universal/RecoverSyntheticsTransformer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package uwu.narumi.deobfuscator.core.other.impl.universal; | ||
|
||
import uwu.narumi.deobfuscator.api.asm.ClassWrapper; | ||
import uwu.narumi.deobfuscator.api.context.Context; | ||
import uwu.narumi.deobfuscator.api.transformer.Transformer; | ||
|
||
public class RecoverSyntheticsTransformer extends Transformer { | ||
@Override | ||
protected void transform(ClassWrapper scope, Context context) throws Exception { | ||
context.classes(scope).forEach(classWrapper -> { | ||
classWrapper.methods().forEach(methodNode -> { | ||
// Recover by name | ||
if (methodNode.name.startsWith("lambda$")) { | ||
// Mark as synthetic | ||
methodNode.access |= ACC_SYNTHETIC; | ||
} | ||
}); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters