lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rishabh Patel (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-6621) two unused variables in analysis/stempel/src/java/org/egothor/stemmer/Compile.java
Date Thu, 06 Aug 2015 19:51:13 GMT

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

Rishabh Patel commented on LUCENE-6621:
---------------------------------------

Thanks Christine! 

> two unused variables in analysis/stempel/src/java/org/egothor/stemmer/Compile.java
> ----------------------------------------------------------------------------------
>
>                 Key: LUCENE-6621
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6621
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/analysis
>    Affects Versions: Trunk
>            Reporter: Rishabh Patel
>            Assignee: Christine Poerschke
>            Priority: Trivial
>             Fix For: 5.3, Trunk
>
>
> {code:title=Compile.java|borderStyle=solid}
> public static void main(java.lang.String[] args) throws Exception {
> ...
>   for (int i = 1; i < args.length; i++) {
>       // System.out.println("[" + args[i] + "]");
>       Diff diff = new Diff();
>       int stems = 0;
>       int words = 0;
> ...
> {code}
> In the file {{Compile.java}}, the variables {{stems}} and {{words}} are unused.
> Although {{words}} gets incremented further in the file, it does not get referenced or
used elsewhere.
> {{stems}} is neither incremented nor used elsewhere in the project.
> Are these variables redundant?



--
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


Mime
View raw message