You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Alan Woodward (Jira)" <ji...@apache.org> on 2020/04/24 11:23:00 UTC

[jira] [Resolved] (LUCENE-9338) Clean up type safety in SimpleBindings

     [ https://issues.apache.org/jira/browse/LUCENE-9338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alan Woodward resolved LUCENE-9338.
-----------------------------------
    Resolution: Fixed

> Clean up type safety in SimpleBindings
> --------------------------------------
>
>                 Key: LUCENE-9338
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9338
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Alan Woodward
>            Assignee: Alan Woodward
>            Priority: Major
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> SimpleBindings holds its bindings as a Map<String, Object>, and then casts things when it builds its value sources.  We can instead store a map of Supplier<DoubleValuesSource> and avoid casts entirely.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org