You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org> on 2014/05/28 15:15:02 UTC

[jira] [Updated] (SOLR-6116) DocRouter.getDocRouter accepts routerName as an Object

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

Shalin Shekhar Mangar updated SOLR-6116:
----------------------------------------

    Description: 
Refactor DocRouter.java from:
{code}
public static DocRouter getDocRouter(Object routerName) {...}
{code}
to:
{code}
public static DocRouter getDocRouter(String routerName) {
{code}

There's really no reason not to accept a routerName as a string.

  was:
Refactor DocRouter.java from:
{code}
public static DocRouter getDocRouter(Object routerName) {...}
{code}
to:
{code}
public static DocRouter getDocRouter(String routerName) {
{code}

There's really no reason to accept a routerName as a string.


> DocRouter.getDocRouter accepts routerName as an Object
> ------------------------------------------------------
>
>                 Key: SOLR-6116
>                 URL: https://issues.apache.org/jira/browse/SOLR-6116
>             Project: Solr
>          Issue Type: Task
>          Components: SolrCloud
>            Reporter: Shalin Shekhar Mangar
>            Priority: Trivial
>             Fix For: 4.9, 5.0
>
>
> Refactor DocRouter.java from:
> {code}
> public static DocRouter getDocRouter(Object routerName) {...}
> {code}
> to:
> {code}
> public static DocRouter getDocRouter(String routerName) {
> {code}
> There's really no reason not to accept a routerName as a string.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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