Просмотр исходного кода

activities: Added @Override annotation above the onDestroy() method signature.

Using the @Override annotation is useful for two reasons:

It elicits a warning from the compiler if the annotated method doesn't actually override anything, as in the case of a misspelling.
It improves the readability of the source code by making it obvious that methods are overridden.
ardevd 7 лет назад
Родитель
Сommit
4d786a3f41
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/main/java/com/owncloud/android/ui/activities/ActivitiesActivity.java

+ 1 - 0
src/main/java/com/owncloud/android/ui/activities/ActivitiesActivity.java

@@ -149,6 +149,7 @@ public class ActivitiesActivity extends FileActivity implements ActivityListInte
         refreshLayout.setColorSchemeColors(accentColor, primaryColor, darkColor);
         refreshLayout.setColorSchemeColors(accentColor, primaryColor, darkColor);
     }
     }
 
 
+    @Override
     public void onDestroy() {
     public void onDestroy() {
         super.onDestroy();
         super.onDestroy();
         unbinder.unbind();
         unbinder.unbind();