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

Unified Diff: base/test/android/javatests/src/org/chromium/base/test/util/TestFileUtil.java

Issue 1054203002: Enable NeedsBraces check and fix some checkstyle issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added if checks Created 5 years, 9 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: base/test/android/javatests/src/org/chromium/base/test/util/TestFileUtil.java
diff --git a/base/test/android/javatests/src/org/chromium/base/test/util/TestFileUtil.java b/base/test/android/javatests/src/org/chromium/base/test/util/TestFileUtil.java
index ca6e73bb1c7d1ba152aa1d5f7edc6a735d2433fe..8765def89525d0a9f35aacedd7b40d77f9cb93d4 100644
--- a/base/test/android/javatests/src/org/chromium/base/test/util/TestFileUtil.java
+++ b/base/test/android/javatests/src/org/chromium/base/test/util/TestFileUtil.java
@@ -29,12 +29,12 @@ public class TestFileUtil {
Writer writer = null;
try {
writer = new OutputStreamWriter(new FileOutputStream(file), "UTF-8");
- writer.write("<html><meta charset=\"UTF-8\" />" +
- "<head><title>" + title + "</title></head>" +
- "<body>" +
- (body != null ? body : "") +
- "</body>" +
- "</html>");
+ writer.write("<html><meta charset=\"UTF-8\" />"
+ + " <head><title>" + title + "</title></head>"
+ + " <body>"
+ + (body != null ? body : "")
+ + " </body>"
+ + " </html>");
} finally {
if (writer != null) {
writer.close();
@@ -61,8 +61,8 @@ public class TestFileUtil {
try {
File f = new File(fileName);
if (f.length() > sizeLimit) {
- throw new IOException("File " + fileName + " length " + f.length() +
- " exceeds limit " + sizeLimit);
+ throw new IOException("File " + fileName + " length " + f.length()
+ + " exceeds limit " + sizeLimit);
}
char[] buffer = new char[(int) f.length()];
reader = new InputStreamReader(new FileInputStream(f), "UTF-8");

Powered by Google App Engine
This is Rietveld 408576698