MCPcopy Create free account
hub / github.com/google/guice / ensureIsBindingAnnotation

Method ensureIsBindingAnnotation

core/src/com/google/inject/Key.java:381–386  ·  view source on GitHub ↗
(Class<? extends Annotation> annotationType)

Source from the content-addressed store, hash-verified

379 }
380
381 private static void ensureIsBindingAnnotation(Class<? extends Annotation> annotationType) {
382 checkArgument(
383 Annotations.isBindingAnnotation(annotationType),
384 "%s is not a binding annotation. Please annotate it with @BindingAnnotation.",
385 annotationType.getName());
386 }
387
388 static enum NullAnnotationStrategy implements AnnotationStrategy {
389 INSTANCE;

Callers 1

strategyForMethod · 0.95

Calls 3

isBindingAnnotationMethod · 0.95
checkArgumentMethod · 0.80
getNameMethod · 0.65

Tested by

no test coverage detected