| 386 | } |
| 387 | |
| 388 | static enum NullAnnotationStrategy implements AnnotationStrategy { |
| 389 | INSTANCE; |
| 390 | |
| 391 | @Override |
| 392 | public boolean hasAttributes() { |
| 393 | return false; |
| 394 | } |
| 395 | |
| 396 | @Override |
| 397 | public AnnotationStrategy withoutAttributes() { |
| 398 | throw new UnsupportedOperationException("Key already has no attributes."); |
| 399 | } |
| 400 | |
| 401 | @Override |
| 402 | public Annotation getAnnotation() { |
| 403 | return null; |
| 404 | } |
| 405 | |
| 406 | @Override |
| 407 | public Class<? extends Annotation> getAnnotationType() { |
| 408 | return null; |
| 409 | } |
| 410 | |
| 411 | @Override |
| 412 | public String toString() { |
| 413 | return "[none]"; |
| 414 | } |
| 415 | } |
| 416 | |
| 417 | // this class not test-covered |
| 418 | static class AnnotationInstanceStrategy implements AnnotationStrategy { |
nothing calls this directly
no outgoing calls
no test coverage detected