[ 
https://issues.apache.org/jira/browse/LUCENE-7602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15785298#comment-15785298
 ] 

Paul Elschot commented on LUCENE-7602:
--------------------------------------

For easy reference, ContextMap now looks like this:
{code}
/** Modifiable {@link Map} of key objects to value objects for {@link 
ValueSource}. */
public class ContextMap extends HashMap<Object,Object> {
  protected ContextMap() {
  }

  protected ContextMap(Map<Object,Object> source) {
    super(source);
  }

  /** Create an empty ContextMap */
  public static ContextMap newContext() {
    return new ContextMap();
  }

  /** Create a ContextMap as a copy of the given one. */
  public static ContextMap copyOf(Map<Object,Object> source) {
    return new ContextMap(source);
  }
}
{code}
The first protected constructor is used in solr's QueryContext, the other one 
could be private.

> 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-ContextMap-lucene.patch, 
> LUCENE-7602-ContextMap-solr.patch, LUCENE-7602.patch, LUCENE-7602.patch, 
> LUCENE-7602.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to