From 7a8955e1b54bb674c2b4cfd6fe54370da71bb72d Mon Sep 17 00:00:00 2001 From: Aurimas Liutikas Date: Wed, 5 Apr 2017 19:26:27 +0000 Subject: [PATCH] Add all missing @Override annotations. Historically, we could not add @Override for certain methods due to using older SDKs to build support library. That is no longer the case so we can add @Override everywhere now. Test: ./gradlew assemble assembleAndroidTest still works Change-Id: I85e3c1157f0e253e3eab7584189f3bf95cf030e9 PiperOrigin-RevId: 152290260 --- .../support/design/internal/ForegroundLinearLayout.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/android/support/design/internal/ForegroundLinearLayout.java b/lib/src/android/support/design/internal/ForegroundLinearLayout.java index 6da30f2a7..b04bbcc64 100644 --- a/lib/src/android/support/design/internal/ForegroundLinearLayout.java +++ b/lib/src/android/support/design/internal/ForegroundLinearLayout.java @@ -81,6 +81,7 @@ public class ForegroundLinearLayout extends LinearLayoutCompat { * @return foreground gravity. * @see #setForegroundGravity(int) */ + @Override public int getForegroundGravity() { return mForegroundGravity; } @@ -91,6 +92,7 @@ public class ForegroundLinearLayout extends LinearLayoutCompat { * @param foregroundGravity See {@link android.view.Gravity} * @see #getForegroundGravity() */ + @Override public void setForegroundGravity(int foregroundGravity) { if (mForegroundGravity != foregroundGravity) { if ((foregroundGravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) == 0) { @@ -141,6 +143,7 @@ public class ForegroundLinearLayout extends LinearLayoutCompat { * * @param drawable The Drawable to be drawn on top of the children. */ + @Override public void setForeground(Drawable drawable) { if (mForeground != drawable) { if (mForeground != null) { @@ -174,6 +177,7 @@ public class ForegroundLinearLayout extends LinearLayoutCompat { * * @return A Drawable or null if no foreground was set. */ + @Override public Drawable getForeground() { return mForeground; }