Index: mojo/android/javatests/src/org/chromium/mojo/bindings/ValidationTest.java |
diff --git a/mojo/android/javatests/src/org/chromium/mojo/bindings/ValidationTest.java b/mojo/android/javatests/src/org/chromium/mojo/bindings/ValidationTest.java |
index 84246188d3a3ca1ee84d853c9ee7340930f124aa..76db3beb7b9510f02bafa135ef1f0c9f3d0fdbfc 100644 |
--- a/mojo/android/javatests/src/org/chromium/mojo/bindings/ValidationTest.java |
+++ b/mojo/android/javatests/src/org/chromium/mojo/bindings/ValidationTest.java |
@@ -4,6 +4,7 @@ |
package org.chromium.mojo.bindings; |
+import android.annotation.SuppressLint; |
import android.support.test.filters.SmallTest; |
import org.chromium.base.test.util.UrlUtils; |
@@ -65,7 +66,9 @@ public class ValidationTest extends MojoTestCase { |
} |
} |
+ @SuppressLint("NewApi") |
private static String getStringContent(File f) throws FileNotFoundException { |
+ // TODO(crbug.com/635567): Fix this properly. |
try (Scanner scanner = new Scanner(f)) { |
scanner.useDelimiter("\\Z"); |
StringBuilder result = new StringBuilder(); |