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

Method ensureRetainedAtRuntime

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

Source from the content-addressed store, hash-verified

372 }
373
374 private static void ensureRetainedAtRuntime(Class<? extends Annotation> annotationType) {
375 checkArgument(
376 Annotations.isRetainedAtRuntime(annotationType),
377 "%s is not retained at runtime. Please annotate it with @Retention(RUNTIME).",
378 annotationType.getName());
379 }
380
381 private static void ensureIsBindingAnnotation(Class<? extends Annotation> annotationType) {
382 checkArgument(

Callers 1

strategyForMethod · 0.95

Calls 3

isRetainedAtRuntimeMethod · 0.95
checkArgumentMethod · 0.80
getNameMethod · 0.65

Tested by

no test coverage detected