Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 21759ceb authored by Daisuke Miyakawa's avatar Daisuke Miyakawa
Browse files

Keep utility methods in userdebug build.

Bug: 5162140
Change-Id: I7782493a3348c756269f86c60873aaedd580e799
parent 0a20c77a
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 @@ public class FormatUtils {
     * 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;