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 TypeMethodDescriptionvoidIf the method invocation is a call totoArray, then it manipulates the returned type ofmethodarg to contain the appropriate nullness. 
- 
Constructor Details
- 
CollectionToArrayHeuristics
Create a CollectionToArrayHeuristics.- Parameters:
 checker- the checker, used for issuing diagnostic messagesfactory- the type factory
 
 - 
 - 
Method Details
- 
handle
If the method invocation is a call totoArray, then it manipulates the returned type ofmethodarg to contain the appropriate nullness. Otherwise, it does nothing.- Parameters:
 tree- method invocation treemethod- invoked method type
 
 -