[
https://issues.apache.org/jira/browse/LUCENE-6885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14993562#comment-14993562
]
Christine Poerschke commented on LUCENE-6885:
---------------------------------------------
Never mind parentheses, {{String,Integer}} needed for {{new HashMap<>}} also
now.
{code}
- final Map<String,Integer> segmentReaders = new HashMap<>();
+ final Map<String,Integer> segmentReaders = (oldReaders == null ?
Collections.<String,Integer>emptyMap() : new
HashMap<String,Integer>(oldReaders.size()));
{code}
> StandardDirectoryReader (initialCapacity) tweaks
> ------------------------------------------------
>
> Key: LUCENE-6885
> URL: https://issues.apache.org/jira/browse/LUCENE-6885
> Project: Lucene - Core
> Issue Type: Task
> Reporter: Christine Poerschke
> Assignee: Christine Poerschke
> Priority: Minor
> Attachments: LUCENE-6885.patch, LUCENE-6885.patch
>
>
> proposed patch against trunk to follow
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]