- 
                Notifications
    
You must be signed in to change notification settings  - Fork 23
 
Description
Problem
- For both public constructors of 
QueryCursor.Optionsthe parameters are non-null QueryCursorfindCapturesandfindMatcheswithallocatorparameter have a non-nullQueryCursor.Options
So if you want to use those findCaptures or findMatches methods with allocator parameter, you are forced to specify custom options, even if you don't want to customize them.
Side note: The Options constructor which takes both a progressCallback and a predicateCallback is currently private even though these options are not mutually exclusive I think. Maybe it would make sense to make that constructor public.
Potential solutions
- Mark the parameters of the public 
QueryCursor.Optionsconstructors as nullable, since they supportnull.
(This is also the current workaround; simply providenulleven though that violates the nullness annotations.) - Support 
nullas options value for thefindCapturesandfindMatchesmethods. - Provide an 
Options.DEFAULTconstant or similar which has the valuenew Options(null, null). 
Please let me know if (and for which one) I should create a PR for this.
Metadata
Metadata
Assignees
Labels
No labels