Deob: Make sure we also copy parameters from constructors
(not sure if we did already but now we're 100% sure)
This commit is contained in:
@@ -51,7 +51,17 @@ public class ParameterRenamer
|
||||
{
|
||||
for (Method sourceM : sourceCF.getMethods())
|
||||
{
|
||||
Method destM = (Method) mapping.get(sourceM);
|
||||
Method destM;
|
||||
if (sourceM.getName().equals("<init>"))
|
||||
{
|
||||
ClassFile destCF = (ClassFile) mapping.get(sourceCF);
|
||||
destM = destCF.findMethod("<init>", sourceM.getDescriptor());
|
||||
}
|
||||
else
|
||||
{
|
||||
destM = (Method) mapping.get(sourceM);
|
||||
}
|
||||
|
||||
if (sourceM.getParameters() != null && !sourceM.getParameters().isEmpty() && destM.getParameters().size() >= 1)
|
||||
{
|
||||
List<Parameter> oldParams = destM.getParameters();
|
||||
|
||||
Reference in New Issue
Block a user