Frameworks/base: Fix trivial equals implementation
The comparator's equal implementation doesn't satisfy the constraints of an equals method, namely being reflexive. Use the standard Object implementation instead. Bug: 19797138 Change-Id: I74f888e99533e1945aab7ab10fe8ee3ded6388f4
This commit is contained in:
@@ -522,10 +522,6 @@ public class Linkify {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public final boolean equals(Object o) {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
Collections.sort(links, c);
|
||||
|
||||
Reference in New Issue
Block a user