1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package io.earcam.acme;
21
22 import java.io.UncheckedIOException;
23 import java.util.Comparator;
24 import java.util.Objects;
25
26 import org.hamcrest.Matchers;
27 import org.hamcrest.core.IsAnything;
28 import org.junit.jupiter.api.Test;
29 import org.objectweb.asm.Label;
30 import org.objectweb.asm.signature.SignatureReader;
31
32 import io.earcam.utilitarian.charstar.CharSequences;
33
34 @AcmeAnnotation(CharSequences.class)
35 public class Annotated implements Comparable<@AcmeAnnotation(Test.class) Annotated> {
36
37 @AcmeAnnotation(Label.class)
38 private int num = 42;
39
40
41 @AcmeAnnotation(SignatureReader.class)
42 public int getNum() throws @AcmeAnnotation(IllegalStateException.class) OutOfMemoryError
43 {
44 @AcmeAnnotation(Matchers.class)
45 int numnum = num;
46 return new @AcmeAnnotation(IsAnything.class) Integer(numnum).intValue();
47 }
48
49
50 @Override
51 public int compareTo(@AcmeAnnotation(Comparator.class) Annotated o)
52 {
53 return 0;
54 }
55
56
57 public static <T extends Comparable<T>> boolean isNaNaNullALul(T instance, Class<@AcmeAnnotation(Objects.class) T> type)
58 {
59 try {
60 return instance == null;
61 } catch(@AcmeAnnotation(UncheckedIOException.class) Throwable t) {
62 return true;
63 }
64 }
65 }
66