mirror of
https://github.com/revanced/smali.git
synced 2025-05-02 15:44:30 +02:00
redid .equals() for CachedIntegerValueField
git-svn-id: https://smali.googlecode.com/svn/trunk@75 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
4561355e99
commit
a7266ebdce
@ -64,14 +64,8 @@ public abstract class CachedIntegerValueField<T extends CachedIntegerValueField>
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
//TODO: check if this returns false if o is a different subclass
|
return (this.getClass() == o.getClass()) &&
|
||||||
if (!this.getClass().isInstance(o)) {
|
(getCachedValue() == ((CachedIntegerValueField)o).getCachedValue());
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
T other = (T)o;
|
|
||||||
|
|
||||||
return getCachedValue() == other.getCachedValue();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user