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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionAnswer.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: chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionAnswer.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionAnswer.java b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionAnswer.java
index efd5cfb8cb3d99ffc224738a6529a53d3f619422..a6eaff0cdc26847b9564e4a75196c187b468bc3d 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionAnswer.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/SuggestionAnswer.java
@@ -106,17 +106,17 @@ public class SuggestionAnswer {
mTextFields.add(new TextField(textValues.getJSONObject(i)));
}
- mAdditionalText = jsonLine.has(ANSWERS_JSON_ADDITIONAL_TEXT) ?
- new TextField(jsonLine.getJSONObject(ANSWERS_JSON_ADDITIONAL_TEXT)) :
- null;
+ mAdditionalText = jsonLine.has(ANSWERS_JSON_ADDITIONAL_TEXT)
+ ? new TextField(jsonLine.getJSONObject(ANSWERS_JSON_ADDITIONAL_TEXT))
+ : null;
- mStatusText = jsonLine.has(ANSWERS_JSON_STATUS_TEXT) ?
- new TextField(jsonLine.getJSONObject(ANSWERS_JSON_STATUS_TEXT)) :
- null;
+ mStatusText = jsonLine.has(ANSWERS_JSON_STATUS_TEXT)
+ ? new TextField(jsonLine.getJSONObject(ANSWERS_JSON_STATUS_TEXT))
+ : null;
- mImage = jsonLine.has(ANSWERS_JSON_IMAGE) ?
- jsonLine.getJSONObject(ANSWERS_JSON_IMAGE).getString(ANSWERS_JSON_IMAGE_DATA) :
- null;
+ mImage = jsonLine.has(ANSWERS_JSON_IMAGE)
+ ? jsonLine.getJSONObject(ANSWERS_JSON_IMAGE).getString(ANSWERS_JSON_IMAGE_DATA)
+ : null;
}
/**

Powered by Google App Engine
This is Rietveld 408576698