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
This commit is contained in:
Aurimas Liutikas 2017-04-05 19:26:27 +00:00 committed by Travis Collins
parent 682c45cbd3
commit 7a8955e1b5

View File

@ -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;
}