Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Unified Diff: mojo/android/javatests/src/org/chromium/mojo/bindings/ValidationTest.java

Issue 2830843004: Update to newer Android Lint and suppress new Lint errors (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698