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 SummaryConstructorsConstructorDescriptionCollectionToArrayHeuristics(BaseTypeChecker checker, NullnessAnnotatedTypeFactory factory) Create a CollectionToArrayHeuristics.
- 
Method SummaryModifier and TypeMethodDescriptionvoidIf the method invocation is a call totoArray, then it manipulates the returned type ofmethodarg to contain the appropriate nullness.
- 
Constructor Details- 
CollectionToArrayHeuristicsCreate a CollectionToArrayHeuristics.- Parameters:
- checker- the checker, used for issuing diagnostic messages
- factory- the type factory
 
 
- 
- 
Method Details- 
handleIf 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 tree
- method- invoked method type
 
 
-