Keep utility methods in userdebug build.
Bug: 5162140
Change-Id: I7782493a3348c756269f86c60873aaedd580e799
diff --git a/src/com/android/contacts/format/FormatUtils.java b/src/com/android/contacts/format/FormatUtils.java
index 771656b..cb4dc2d 100644
--- a/src/com/android/contacts/format/FormatUtils.java
+++ b/src/com/android/contacts/format/FormatUtils.java
@@ -15,6 +15,7 @@
*/
package com.android.contacts.format;
+import com.android.contacts.test.NeededForTesting;
import com.google.common.annotations.VisibleForTesting;
import android.database.CharArrayBuffer;
@@ -45,6 +46,7 @@
* Finds the earliest point in string1 at which the first part of string2 matches. For example,
* overlapPoint("abcd", "cdef") == 2.
*/
+ @NeededForTesting // App itself doesn't use this right now, but we don't want to remove it.
public static int overlapPoint(String string1, String string2) {
if (string1 == null || string2 == null) {
return -1;