MCPcopy Create free account
hub / github.com/antlr/codebuff / disallowPrimitiveType

Method disallowPrimitiveType

output/java_guava/1.4.18/Types.java:535–542  ·  view source on GitHub ↗
(Type[] types, String usedAs)

Source from the content-addressed store, hash-verified

533 }
534
535 private static void disallowPrimitiveType(Type[] types, String usedAs) {
536 for (Type type : types) {
537 if (type instanceof Class) {
538 Class<?> cls = (Class<?>) type;
539 checkArgument(!cls.isPrimitive(), "Primitive type '%s' used as %s", cls, usedAs);
540 }
541 }
542 }
543
544 /** Returns the {@code Class} object of arrays with {@code componentType}. */
545

Callers 3

ParameterizedTypeImplMethod · 0.45
TypeVariableImplMethod · 0.45
WildcardTypeImplMethod · 0.45

Calls 2

checkArgumentMethod · 0.45
isPrimitiveMethod · 0.45

Tested by

no test coverage detected