Class CollectionToArrayHeuristics
java.lang.Object
org.checkerframework.checker.nullness.CollectionToArrayHeuristics
Determines the nullness type of calls to
Collection.toArray()
.- See the Checker Framework Manual:
- Nullness and conversions from collections
to arrays, Constant Value Checker
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionToArrayHeuristics
(BaseTypeChecker checker, NullnessAnnotatedTypeFactory factory) Create a CollectionToArrayHeuristics. -
Method Summary
Modifier and TypeMethodDescriptionvoid
If the method invocation is a call totoArray
, then it manipulates the returned type ofmethod
arg to contain the appropriate nullness.