Lucene - Core
  1. Lucene - Core
  2. LUCENE-6621

two unused variables in analysis/stempel/src/java/org/egothor/stemmer/Compile.java

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 5.3, 6.0
    • Component/s: modules/analysis
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Compile.java
      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;
      ...
      

      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?

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit 1693482 from Christine Poerschke in branch 'dev/trunk'
        [ https://svn.apache.org/r1693482 ]

        LUCENE-6621: Removed two unused variables in analysis/stempel/src/java/org/egothor/stemmer/Compile.java

        Show
        ASF subversion and git services added a comment - Commit 1693482 from Christine Poerschke in branch 'dev/trunk' [ https://svn.apache.org/r1693482 ] LUCENE-6621 : Removed two unused variables in analysis/stempel/src/java/org/egothor/stemmer/Compile.java
        Hide
        ASF subversion and git services added a comment -

        Commit 1693485 from Christine Poerschke in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1693485 ]

        LUCENE-6621: Removed two unused variables in analysis/stempel/src/java/org/egothor/stemmer/Compile.java

        Show
        ASF subversion and git services added a comment - Commit 1693485 from Christine Poerschke in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1693485 ] LUCENE-6621 : Removed two unused variables in analysis/stempel/src/java/org/egothor/stemmer/Compile.java
        Hide
        Christine Poerschke added a comment -

        Thanks Rishabh!

        Show
        Christine Poerschke added a comment - Thanks Rishabh!
        Hide
        Rishabh Patel added a comment -

        Thanks Christine!

        Show
        Rishabh Patel added a comment - Thanks Christine!
        Hide
        Shalin Shekhar Mangar added a comment -

        Bulk close for 5.3.0 release

        Show
        Shalin Shekhar Mangar added a comment - Bulk close for 5.3.0 release

          People

          • Assignee:
            Christine Poerschke
            Reporter:
            Rishabh Patel
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development