MCPcopy Index your code
hub / github.com/google/dagger / builderMsgsFor

Method builderMsgsFor

java/dagger/internal/codegen/ErrorMessages.java:332–345  ·  view source on GitHub ↗
(ComponentDescriptor.Kind kind)

Source from the content-addressed store, hash-verified

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";

Callers 3

validateMethod · 0.95
validateMethod · 0.95
validateBuildersMethod · 0.95

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected