Fix MethodTest tests that use identifyCaller()

A change made during the review process was not tested
correctly.

Bug: 28901571
Change-Id: I39d4e942d77028ee3c99b0d959aa03e9b38f9287
diff --git a/luni/src/test/java/libcore/java/lang/reflect/MethodTest.java b/luni/src/test/java/libcore/java/lang/reflect/MethodTest.java
index 6abf53e..49b3ad1 100644
--- a/luni/src/test/java/libcore/java/lang/reflect/MethodTest.java
+++ b/luni/src/test/java/libcore/java/lang/reflect/MethodTest.java
@@ -535,7 +535,11 @@
         }
     }
 
-    private static String identifyCaller() {
+    /**
+     * Keep this package-protected or public to avoid the introduction of synthetic methods that
+     * throw off the offset.
+     */
+    static String identifyCaller() {
         StackTraceElement[] stack = Thread.currentThread().getStackTrace();
         int i = 0;
         while (!stack[i++].getMethodName().equals("identifyCaller")) {}