framework/jtreg/StubParserEnum/StubParserEnum.astub
raw| 1 | import org.checkerframework.common.util.report.qual.*; |
| 2 | |
| 3 | package java.util.concurrent; |
| 4 | |
| 5 | // test annotations placed on plain enum constants |
| 6 | enum TimeUnit { |
| 7 | NANOSECONDS, |
| 8 | MICROSECONDS, |
| 9 | |
| 10 | @ReportReadWrite MILLISECONDS, |
| 11 | @ReportReadWrite SECONDS; |
| 12 | |
| 13 | @ReportCall |
| 14 | long toMicros(long d); |
| 15 | } |