[
https://issues.apache.org/jira/browse/LUCENE-7602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Elschot updated LUCENE-7602:
---------------------------------
Attachment: LUCENE-7602.patch
Patch of 24 Dec 2016.
This consists of:
- replacing Map by Map<?,?> in a few submodules.
- 7 @SuppressWarnings for unchecked casts (see also below),
- a split off of Const*DocValues classes into their own source files,
- one removal of close() on an AutoClosable,
- a few minor generics improvements,
I have a question on these cases, there are 7 of them:
{code}
@SuppressWarnings("unchecked")
public void createWeight(Map<?,?> context, IndexSearcher searcher) throws
IOException {
// FIXME: how to use a helper method here to avoid the unchecked cast? See
https://docs.oracle.com/javase/tutorial/java/generics/capture.html
((Map<Object,Object>)context).put("searcher",searcher);
{code}
I tried to implement such a helper function, but I could not get it to compile
cleanly.
Any suggestions for this?
> Fix compiler warnings for ant clean compile
> -------------------------------------------
>
> Key: LUCENE-7602
> URL: https://issues.apache.org/jira/browse/LUCENE-7602
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Paul Elschot
> Priority: Minor
> Labels: build
> Fix For: trunk
>
> Attachments: LUCENE-7602.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]