diff options
| author | Menny Even Danan <menny@evendanan.net> | 2020-06-20 04:28:07 +0000 |
|---|---|---|
| committer | Menny Even Danan <menny@evendanan.net> | 2020-06-20 04:28:07 +0000 |
| commit | d7081e2afdb9234be6c610fe504eb625a88e6c78 (patch) | |
| tree | b736c2e882fc72300c7636ae1c36f803734892f5 /ime/app | |
| parent | b0be46ae9a7fef08181940049921e6f67057c5a1 (diff) | |
| download | AnySoftKeyboard-d7081e2afdb9234be6c610fe504eb625a88e6c78.tar.gz AnySoftKeyboard-d7081e2afdb9234be6c610fe504eb625a88e6c78.tar.bz2 | |
Bump google-java-format
This tool requires Java11
Diffstat (limited to 'ime/app')
3 files changed, 10 insertions, 5 deletions
diff --git a/ime/app/src/main/java/com/anysoftkeyboard/keyboards/physical/MyMetaKeyKeyListener.java b/ime/app/src/main/java/com/anysoftkeyboard/keyboards/physical/MyMetaKeyKeyListener.java index 80f5f0ba6..510335128 100644 --- a/ime/app/src/main/java/com/anysoftkeyboard/keyboards/physical/MyMetaKeyKeyListener.java +++ b/ime/app/src/main/java/com/anysoftkeyboard/keyboards/physical/MyMetaKeyKeyListener.java @@ -162,10 +162,12 @@ public abstract class MyMetaKeyKeyListener { } private static long press(long state, int what, long mask) { - if ((state & (((long) what) << PRESSED_SHIFT)) != 0) ; // repeat before release + if ((state & (((long) what) << PRESSED_SHIFT)) != 0) + ; // repeat before release else if ((state & (((long) what) << RELEASED_SHIFT)) != 0) state = (state & ~mask) | what | (((long) what) << LOCKED_SHIFT); - else if ((state & (((long) what) << USED_SHIFT)) != 0) ; // repeat after use + else if ((state & (((long) what) << USED_SHIFT)) != 0) + ; // repeat after use else if ((state & (((long) what) << LOCKED_SHIFT)) != 0) state = state & ~mask; else state = diff --git a/ime/app/src/main/java/com/anysoftkeyboard/utils/XmlUtils.java b/ime/app/src/main/java/com/anysoftkeyboard/utils/XmlUtils.java index 88bee201e..ba6d042d2 100644 --- a/ime/app/src/main/java/com/anysoftkeyboard/utils/XmlUtils.java +++ b/ime/app/src/main/java/com/anysoftkeyboard/utils/XmlUtils.java @@ -26,7 +26,8 @@ public class XmlUtils { throws XmlPullParserException, IOException { int type; while ((type = parser.next()) != XmlPullParser.START_TAG - && type != XmlPullParser.END_DOCUMENT) ; + && type != XmlPullParser.END_DOCUMENT) + ; if (type != XmlPullParser.START_TAG) { throw new XmlPullParserException("No start tag found"); @@ -45,6 +46,7 @@ public class XmlUtils { throws XmlPullParserException, IOException { int type; while ((type = parser.next()) != XmlPullParser.START_TAG - && type != XmlPullParser.END_DOCUMENT) ; + && type != XmlPullParser.END_DOCUMENT) + ; } } diff --git a/ime/app/src/test/java/com/anysoftkeyboard/dictionaries/BTreeDictionaryTest.java b/ime/app/src/test/java/com/anysoftkeyboard/dictionaries/BTreeDictionaryTest.java index 120b4e99f..8e0240b00 100644 --- a/ime/app/src/test/java/com/anysoftkeyboard/dictionaries/BTreeDictionaryTest.java +++ b/ime/app/src/test/java/com/anysoftkeyboard/dictionaries/BTreeDictionaryTest.java @@ -297,7 +297,8 @@ public class BTreeDictionaryTest { protected void readWordsFromActualStorage(WordReadListener listener) { Random r = new Random(); while (listener.onWordRead( - "w" + Integer.toHexString(r.nextInt()), 1 + r.nextInt(200))) ; + "w" + Integer.toHexString(r.nextInt()), 1 + r.nextInt(200))) + ; } @Override |
