Skip to content

Commit e672166

Browse files
committed
Add tests for copy of non AA annotations
1 parent 585cd2d commit e672166

5 files changed

Lines changed: 19 additions & 79 deletions

File tree

‎AndroidAnnotations/functional-test-1-5/pom.xml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@
5151
<artifactId>ormlite-android</artifactId>
5252
<version>4.41</version>
5353
</dependency>
54+
<dependency>
55+
<groupId>com.google.code.findbugs</groupId>
56+
<artifactId>jsr305</artifactId>
57+
<version>1.3.9</version>
58+
</dependency>
59+
<dependency>
60+
<groupId>com.squareup</groupId>
61+
<artifactId>otto</artifactId>
62+
<version>1.3.4</version>
63+
</dependency>
5464
<dependency>
5565
<!-- spring-android-rest-template is required to use the Rest API -->
5666
<groupId>org.springframework.android</groupId>

‎AndroidAnnotations/functional-test-1-5/src/main/java/com/squareup/otto/Produce.java‎

Lines changed: 0 additions & 27 deletions
This file was deleted.

‎AndroidAnnotations/functional-test-1-5/src/main/java/com/squareup/otto/Subscribe.java‎

Lines changed: 0 additions & 27 deletions
This file was deleted.

AndroidAnnotations/functional-test-1-5/src/main/java/org/androidannotations/test15/otto/OttoBean.java renamed to AndroidAnnotations/functional-test-1-5/src/main/java/org/androidannotations/test15/OthersAnnotations.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,25 @@
1313
* License for the specific language governing permissions and limitations under
1414
* the License.
1515
*/
16-
package org.androidannotations.test15.otto;
16+
package org.androidannotations.test15;
1717

18+
import com.squareup.otto.Produce;
19+
import com.squareup.otto.Subscribe;
1820
import org.androidannotations.annotations.Background;
1921
import org.androidannotations.annotations.EBean;
2022
import org.androidannotations.annotations.Trace;
2123

22-
import com.squareup.otto.Produce;
23-
import com.squareup.otto.Subscribe;
24+
import javax.annotation.Nonnull;
25+
import javax.annotation.Nullable;
2426

2527
@EBean
26-
public class OttoBean {
28+
@Nullable
29+
public class OthersAnnotations {
2730

2831
@Trace
2932
@Background
3033
@Subscribe
31-
public void onEvent(Event event) {
34+
public void onEvent(@Nonnull Event event) {
3235

3336
}
3437

@@ -37,4 +40,5 @@ public Event produceEvent() {
3740
return new Event();
3841
}
3942

43+
public static class Event {}
4044
}

‎AndroidAnnotations/functional-test-1-5/src/main/java/org/androidannotations/test15/otto/Event.java‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)