Home | History | Annotate | Download | only in test-data
      1 package foo;
      2 
      3 import static android.arch.lifecycle.Lifecycle.Event.ON_STOP;
      4 
      5 import android.arch.lifecycle.Lifecycle.Event;
      6 import android.arch.lifecycle.LifecycleOwner;
      7 import android.arch.lifecycle.OnLifecycleEvent;
      8 
      9 class InheritanceOk2Base {
     10     @OnLifecycleEvent(ON_STOP)
     11     public void onStop(LifecycleOwner provider) {
     12     }
     13 }
     14 
     15 class InheritanceOk2Derived extends InheritanceOk2Base {
     16     @OnLifecycleEvent(ON_STOP)
     17     public void onStop2(LifecycleOwner provider) {
     18     }
     19 }
     20