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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java

Issue 744453002: Fix a bunch of Java Checkstyle issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NeedsBraces to info Created 6 years, 1 month 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: content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java b/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java
index e075d8e4d400dbef2f502c3f262b3455eed249a6..5b8e505c0ef47f03b35ce9a194aeb08f604ac060 100644
--- a/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java
+++ b/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java
@@ -366,8 +366,8 @@ public class ImeAdapter {
}
for (int i = 0; i < events.length; ++i) {
- if (events[i].getAction() == KeyEvent.ACTION_DOWN &&
- !KeyEvent.isModifierKey(events[i].getKeyCode())) {
+ if (events[i].getAction() == KeyEvent.ACTION_DOWN
+ && !KeyEvent.isModifierKey(events[i].getKeyCode())) {
return events[i];
}
}
@@ -446,9 +446,9 @@ public class ImeAdapter {
// composition below.
if (keyCode > 0 && isCommit && mLastComposeText == null) {
mLastSyntheticKeyCode = keyCode;
- return translateAndSendNativeEvents(keyEvent) &&
- translateAndSendNativeEvents(KeyEvent.changeAction(
- keyEvent, KeyEvent.ACTION_UP));
+ return translateAndSendNativeEvents(keyEvent)
+ && translateAndSendNativeEvents(
+ KeyEvent.changeAction(keyEvent, KeyEvent.ACTION_UP));
}
// When typing, there is no issue sending KeyDown and KeyUp events around the

Powered by Google App Engine
This is Rietveld 408576698