Removed ContextChain#sDeepEquals
@@ -35,8 +35,6 @@ public class ContextChain implements Parcelable {
private static final char PARENT_SEPARATOR = '/';
- private static boolean sUseDeepEquals = false;
-
private final String mTag;
private final String mName;
private final int mLevel;
@@ -47,8 +45,9 @@ public class ContextChain implements Parcelable {
private @Nullable String mSerializedString;
+ @Deprecated
public static void setUseDeepEquals(boolean useDeepEquals) {
- sUseDeepEquals = useDeepEquals;
+ // TODO remove
}
public ContextChain(
@@ -150,7 +149,6 @@ public class ContextChain implements Parcelable {
@Override
public boolean equals(@Nullable Object obj) {
- if (sUseDeepEquals) {
if (this == obj) {
return true;
}
@@ -163,12 +161,9 @@ public class ContextChain implements Parcelable {
&& mLevel == other.mLevel
&& (mParent == other.mParent || (mParent != null && mParent.equals(other.mParent)));
}
- return super.equals(obj);
- }
@Override
public int hashCode() {
- if (sUseDeepEquals) {
int result = super.hashCode();
result = 31 * result + (mTag != null ? mTag.hashCode() : 0);
result = 31 * result + (mName != null ? mName.hashCode() : 0);
@@ -176,8 +171,6 @@ public class ContextChain implements Parcelable {
result = 31 * result + (mParent != null ? mParent.hashCode() : 0);
return result;
}
- return super.hashCode();
- }
@Override
public int describeContents() {
