mirror of
https://github.com/revanced/smali.git
synced 2025-05-09 19:04:32 +02:00
Don't compare encoded values with item references by item index
This commit is contained in:
parent
7bb622e0b1
commit
0aa30d93f8
@ -80,7 +80,7 @@ public class EnumEncodedValue extends EncodedValue {
|
|||||||
protected int compareValue(EncodedValue o) {
|
protected int compareValue(EncodedValue o) {
|
||||||
EnumEncodedValue other = (EnumEncodedValue)o;
|
EnumEncodedValue other = (EnumEncodedValue)o;
|
||||||
|
|
||||||
return value.getIndex() - other.value.getIndex();
|
return value.compareTo(other.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
|
@ -80,7 +80,7 @@ public class FieldEncodedValue extends EncodedValue {
|
|||||||
protected int compareValue(EncodedValue o) {
|
protected int compareValue(EncodedValue o) {
|
||||||
FieldEncodedValue other = (FieldEncodedValue)o;
|
FieldEncodedValue other = (FieldEncodedValue)o;
|
||||||
|
|
||||||
return value.getIndex()-other.value.getIndex();
|
return value.compareTo(other.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
|
@ -80,7 +80,7 @@ public class MethodEncodedValue extends EncodedValue {
|
|||||||
protected int compareValue(EncodedValue o) {
|
protected int compareValue(EncodedValue o) {
|
||||||
MethodEncodedValue other = (MethodEncodedValue)o;
|
MethodEncodedValue other = (MethodEncodedValue)o;
|
||||||
|
|
||||||
return value.getIndex() - other.value.getIndex();
|
return value.compareTo(other.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
|
@ -81,7 +81,7 @@ public class StringEncodedValue extends EncodedValue {
|
|||||||
protected int compareValue(EncodedValue o) {
|
protected int compareValue(EncodedValue o) {
|
||||||
StringEncodedValue other = (StringEncodedValue)o;
|
StringEncodedValue other = (StringEncodedValue)o;
|
||||||
|
|
||||||
return value.getIndex() - other.value.getIndex();
|
return value.compareTo(other.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
|
@ -80,7 +80,7 @@ public class TypeEncodedValue extends EncodedValue {
|
|||||||
protected int compareValue(EncodedValue o) {
|
protected int compareValue(EncodedValue o) {
|
||||||
TypeEncodedValue other = (TypeEncodedValue)o;
|
TypeEncodedValue other = (TypeEncodedValue)o;
|
||||||
|
|
||||||
return value.getIndex() - other.value.getIndex();
|
return value.compareTo(other.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user