You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jason Gerlowski (JIRA)" <ji...@apache.org> on 2015/12/08 18:58:11 UTC

[jira] [Updated] (SOLR-8385) Narrow StreamFactory.withFunctionName clazz parameter to prevent misconfiguration.

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

Jason Gerlowski updated SOLR-8385:
----------------------------------
    Description: 
Currently, {{StreamFactory}} has several overloaded {{withFunctionName}} methods.  One of these, takes two parameters: a {{String}} functionName, and a {{Class}} implementation type.

This second parameter is a little too generic, because it's really only ever valid for a small, small subset of classes (i.e. {{Class<? extends Expressible}} ).  Narrowing the type of this parameter is a small step towards preventing accidental misconfiguration of a {{StreamFactory}}.

  was:
Currently, {{StreamFactory}} has several overloaded {{withFunctionName}} methods.  One of these, takes two parameters: a {{String}} functionName, and a {{Class}} implementation type.

This second parameter is a little too generic, because it's really only ever valid for a small, small subset of classes (i.e. {{Class<? extends Expressible}} ).  Narrowing the type of this parameter is a small step towards accidentally misconfiguring {{StreamFactory}}.


> Narrow StreamFactory.withFunctionName clazz parameter to prevent misconfiguration.
> ----------------------------------------------------------------------------------
>
>                 Key: SOLR-8385
>                 URL: https://issues.apache.org/jira/browse/SOLR-8385
>             Project: Solr
>          Issue Type: Improvement
>          Components: SolrJ
>    Affects Versions: Trunk
>            Reporter: Jason Gerlowski
>            Priority: Trivial
>              Labels: easyfix
>             Fix For: Trunk
>
>
> Currently, {{StreamFactory}} has several overloaded {{withFunctionName}} methods.  One of these, takes two parameters: a {{String}} functionName, and a {{Class}} implementation type.
> This second parameter is a little too generic, because it's really only ever valid for a small, small subset of classes (i.e. {{Class<? extends Expressible}} ).  Narrowing the type of this parameter is a small step towards preventing accidental misconfiguration of a {{StreamFactory}}.



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

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