diff --git a/core/java/android/inputmethodservice/Keyboard.java b/core/java/android/inputmethodservice/Keyboard.java
index 4d0ee7d2a7305..a5490eff08999 100644
--- a/core/java/android/inputmethodservice/Keyboard.java
+++ b/core/java/android/inputmethodservice/Keyboard.java
@@ -410,7 +410,8 @@ public class Keyboard {
*
* - This is a sticky key, that is, {@link #sticky} is {@code true}.
*
- The parameter {@code inside} is {@code true}.
- *
- {@link Build.VERSION.SDK_INT} is greater than {@link VERSION_CODES.LOLLIPOP_MR1}.
+ *
- {@link android.os.Build.VERSION#SDK_INT} is greater than
+ * {@link android.os.Build.VERSION_CODES#LOLLIPOP_MR1}.
*
*
* @param inside whether the finger was released inside the key. Works only on Android M and