(ComponentDescriptor.Kind kind)
| 330 | "@BindsInstance methods should have exactly one parameter for the bound type"; |
| 331 | |
| 332 | static ComponentBuilderMessages builderMsgsFor(ComponentDescriptor.Kind kind) { |
| 333 | switch(kind) { |
| 334 | case COMPONENT: |
| 335 | return ComponentBuilderMessages.INSTANCE; |
| 336 | case SUBCOMPONENT: |
| 337 | return SubcomponentBuilderMessages.INSTANCE; |
| 338 | case PRODUCTION_COMPONENT: |
| 339 | return ProductionComponentBuilderMessages.INSTANCE; |
| 340 | case PRODUCTION_SUBCOMPONENT: |
| 341 | return ProductionSubcomponentBuilderMessages.INSTANCE; |
| 342 | default: |
| 343 | throw new IllegalStateException(kind.toString()); |
| 344 | } |
| 345 | } |
| 346 | |
| 347 | static final String CAN_RELEASE_REFERENCES_ANNOTATIONS_MUST_NOT_HAVE_SOURCE_RETENTION = |
| 348 | "@CanReleaseReferences annotations must not have SOURCE retention"; |
no test coverage detected