Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
hax0r31337 committed Feb 16, 2022
1 parent 167b16c commit f649fc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group 'me.liuli.jbs'
version '1.0.1'
version '1.0.2'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ class PrivateMemberObfuscator : ITransformer {
}

klass.methods.forEach { method ->
if(method.access and Opcodes.ACC_PRIVATE != 0) {
if(!method.name.startsWith("<") && !method.name.contains("lambda") && method.access and Opcodes.ACC_PRIVATE != 0) {
val name = selector.select()
methodMap[method.name] = name
methodMap[method.name + method.desc] = name
method.name = name
}
}
Expand All @@ -43,7 +43,7 @@ class PrivateMemberObfuscator : ITransformer {
}
} else if(insn is MethodInsnNode) {
if (insn.owner == klass.name) {
insn.name = methodMap[insn.name] ?: insn.name
insn.name = methodMap[insn.name + insn.desc] ?: insn.name
}
}
}
Expand Down

0 comments on commit f649fc7

Please sign in to comment.