Skip to content

Commit 10f833a

Browse files
committed
Test for non-AA annotations are copied to method parameters
1 parent f13bba2 commit 10f833a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎AndroidAnnotations/androidannotations/src/test/java/org/androidannotations/copyannotations/CopyOtherAnnotationsTest.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ public void testOverridenMethodHasCopiedNonAAAnnotations() {
6060
" \"hi\"", //
6161
" })", //
6262
" @Override", //
63-
" public void onEvent(final Event event) {", };
63+
" public void onEvent(", //
64+
" @Deprecated", //
65+
" final Event event) {", };
6466
// CHECKSTYLE:ON
6567

6668
compileFiles(HasOtherAnnotations.class);

‎AndroidAnnotations/androidannotations/src/test/java/org/androidannotations/copyannotations/HasOtherAnnotations.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class HasOtherAnnotations {
3838
@Addressing(responses = Responses.ALL)
3939
@Action(input = "someString")
4040
@SuppressWarnings(value = { "", "hi" })
41-
public void onEvent(Event event) {
41+
public void onEvent(@Deprecated Event event) {
4242

4343
}
4444

0 commit comments

Comments
 (0)