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

Method disallowPrimitiveType

output/java_guava/1.4.19/Types.java:534–541  ·  view source on GitHub ↗
(Type[] types, String usedAs)

Source from the content-addressed store, hash-verified

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

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