Workaround for bug in ASM which adds java/lang/Synthetic annotation twice. Should fix #278

This commit is contained in:
Alexey Andreev 2017-05-21 00:16:23 +03:00
parent d882fd14a6
commit 7019e1ada6

View File

@ -343,6 +343,11 @@ public class Parser {
desc = desc.substring(1, desc.length() - 1);
}
desc = desc.replace('/', '.');
if (annotations.get(desc) != null) {
continue;
}
AnnotationHolder annot = new AnnotationHolder(desc);
parseAnnotationValues(annot, annotNode.values);
annotations.add(annot);