mirror of
https://github.com/konsoletyper/teavm.git
synced 2024-11-21 01:00:54 +08:00
Copy parameter annotations when renaming a class
This commit is contained in:
parent
ae1ec8ffe5
commit
d1fa57210e
@ -129,6 +129,10 @@ public class ClassRefsRenamer extends AbstractInstructionVisitor {
|
||||
renamedMethod.setLevel(method.getLevel());
|
||||
renamedMethod.setProgram(method.getProgram());
|
||||
rename(method.getAnnotations(), renamedMethod.getAnnotations());
|
||||
for (int i = 0; i < method.parameterCount(); ++i) {
|
||||
rename(method.parameterAnnotation(i), renamedMethod.parameterAnnotation(i));
|
||||
}
|
||||
|
||||
if (renamedMethod.getProgram() != null) {
|
||||
rename(renamedMethod.getProgram());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user