mirror of
https://github.com/revanced/smali.git
synced 2025-05-29 20:20:12 +02:00
Fix method sorting in AnnotationDirectoryPool
This commit is contained in:
parent
7d5439950f
commit
5152315e25
@ -152,7 +152,7 @@ public class AnnotationDirectoryPool {
|
|||||||
writer.writeInt(dexFile.annotationSetPool.getOffset(field.getAnnotations()));
|
writer.writeInt(dexFile.annotationSetPool.getOffset(field.getAnnotations()));
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean sortMethods = CollectionUtils.isNaturalSortedSet(key.classDef.getMethods());
|
boolean sortMethods = !CollectionUtils.isNaturalSortedSet(key.classDef.getMethods());
|
||||||
Iterable<? extends Method> methodsWithAnnotations = null;
|
Iterable<? extends Method> methodsWithAnnotations = null;
|
||||||
if (sortMethods) {
|
if (sortMethods) {
|
||||||
methodsWithAnnotations = Lists.newArrayList(key.getMethodsWithAnnotations());
|
methodsWithAnnotations = Lists.newArrayList(key.getMethodsWithAnnotations());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user