Skip to content

Commit 1b7183c

Browse files
committed
Rename IgnoredWhenDetached to IgnoreWhen
1 parent 78ed909 commit 1b7183c

4 files changed

Lines changed: 14 additions & 14 deletions

File tree

AndroidAnnotations/androidannotations-core/androidannotations-api/src/main/java/org/androidannotations/annotations/IgnoredWhenDetached.java renamed to AndroidAnnotations/androidannotations-core/androidannotations-api/src/main/java/org/androidannotations/annotations/IgnoreWhen.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@
4747
* ...
4848
*
4949
* @UiThread
50-
* @IgnoredWhenDetached
50+
* @IgnoreWhen
5151
* void killActivity() {
5252
* getActivity().finish();
5353
* }
5454
*
5555
*
56-
* @IgnoredWhenDetached
56+
* @IgnoreWhen
5757
* void updateTitle(String title) {
5858
* getActivity().setTitle(title);
5959
* }
@@ -69,6 +69,6 @@
6969
*/
7070
@Retention(RetentionPolicy.CLASS)
7171
@Target(ElementType.METHOD)
72-
public @interface IgnoredWhenDetached {
72+
public @interface IgnoreWhen {
7373

7474
}

‎AndroidAnnotations/androidannotations-core/androidannotations-test/src/main/java/org/androidannotations/test/efragment/MyListFragment.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import org.androidannotations.annotations.Background;
1919
import org.androidannotations.annotations.EFragment;
20-
import org.androidannotations.annotations.IgnoredWhenDetached;
20+
import org.androidannotations.annotations.IgnoreWhen;
2121
import org.androidannotations.annotations.ItemClick;
2222
import org.androidannotations.annotations.UiThread;
2323
import org.androidannotations.annotations.ViewById;
@@ -58,7 +58,7 @@ void uiThread() {
5858
}
5959

6060
@UiThread(propagation = UiThread.Propagation.REUSE)
61-
@IgnoredWhenDetached
61+
@IgnoreWhen
6262
void uiThreadIgnored() {
6363
didExecute = true;
6464
}
@@ -74,12 +74,12 @@ void backgroundThread() {
7474
}
7575

7676
@Background
77-
@IgnoredWhenDetached
77+
@IgnoreWhen
7878
void backgroundThreadIgnored() {
7979
didExecute = true;
8080
}
8181

82-
@IgnoredWhenDetached
82+
@IgnoreWhen
8383
void ignored() {
8484
didExecute = true;
8585
}

‎AndroidAnnotations/androidannotations-core/androidannotations/src/main/java/org/androidannotations/internal/core/CorePlugin.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
import org.androidannotations.internal.core.handler.HierarchyViewerSupportHandler;
6161
import org.androidannotations.internal.core.handler.HtmlResHandler;
6262
import org.androidannotations.internal.core.handler.HttpsClientHandler;
63-
import org.androidannotations.internal.core.handler.IgnoredWhenDetachedHandler;
63+
import org.androidannotations.internal.core.handler.IgnoreWhenHandler;
6464
import org.androidannotations.internal.core.handler.InjectMenuHandler;
6565
import org.androidannotations.internal.core.handler.InstanceStateHandler;
6666
import org.androidannotations.internal.core.handler.ItemClickHandler;
@@ -206,7 +206,7 @@ public List<AnnotationHandler<?>> getHandlers(AndroidAnnotationsEnvironment andr
206206
annotationHandlers.add(new PageScrollStateChangedHandler(androidAnnotationEnv));
207207
annotationHandlers.add(new PageSelectedHandler(androidAnnotationEnv));
208208

209-
annotationHandlers.add(new IgnoredWhenDetachedHandler(androidAnnotationEnv));
209+
annotationHandlers.add(new IgnoreWhenHandler(androidAnnotationEnv));
210210

211211
annotationHandlers.add(new AfterInjectHandler(androidAnnotationEnv));
212212
annotationHandlers.add(new AfterExtrasHandler(androidAnnotationEnv));
@@ -231,7 +231,7 @@ public List<AnnotationHandler<?>> getHandlers(AndroidAnnotationsEnvironment andr
231231

232232
/*
233233
* UIThreadHandler and BackgroundHandler must be after TraceHandler and
234-
* IgnoredWhenDetached
234+
* IgnoreWhen
235235
*/
236236
annotationHandlers.add(new UiThreadHandler(androidAnnotationEnv));
237237
annotationHandlers.add(new BackgroundHandler(androidAnnotationEnv));

AndroidAnnotations/androidannotations-core/androidannotations/src/main/java/org/androidannotations/internal/core/handler/IgnoredWhenDetachedHandler.java renamed to AndroidAnnotations/androidannotations-core/androidannotations/src/main/java/org/androidannotations/internal/core/handler/IgnoreWhenHandler.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@
2323

2424
import org.androidannotations.AndroidAnnotationsEnvironment;
2525
import org.androidannotations.ElementValidation;
26-
import org.androidannotations.annotations.IgnoredWhenDetached;
26+
import org.androidannotations.annotations.IgnoreWhen;
2727
import org.androidannotations.handler.BaseAnnotationHandler;
2828
import org.androidannotations.holder.EFragmentHolder;
2929

3030
import com.helger.jcodemodel.JBlock;
3131
import com.helger.jcodemodel.JMethod;
3232

33-
public class IgnoredWhenDetachedHandler extends BaseAnnotationHandler<EFragmentHolder> {
33+
public class IgnoreWhenHandler extends BaseAnnotationHandler<EFragmentHolder> {
3434

35-
public IgnoredWhenDetachedHandler(AndroidAnnotationsEnvironment environment) {
36-
super(IgnoredWhenDetached.class, environment);
35+
public IgnoreWhenHandler(AndroidAnnotationsEnvironment environment) {
36+
super(IgnoreWhen.class, environment);
3737
}
3838

3939
@Override

0 commit comments

Comments
 (0)