From 610b2c778c83744509ecda0a6cc381ea4b54ad84 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Sun, 15 Mar 2015 15:21:25 -0700 Subject: 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 --- core/java/android/text/util/Linkify.java | 4 ---- 1 file changed, 4 deletions(-) (limited to 'core') diff --git a/core/java/android/text/util/Linkify.java b/core/java/android/text/util/Linkify.java index c1341e1..0f401a4 100644 --- a/core/java/android/text/util/Linkify.java +++ b/core/java/android/text/util/Linkify.java @@ -522,10 +522,6 @@ public class Linkify { return 0; } - - public final boolean equals(Object o) { - return false; - } }; Collections.sort(links, c); -- cgit v1.1