Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-6621

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

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 6.0
    • 5.3, 6.0
    • modules/analysis
    • None
    • 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?

      Attachments

        Activity

          People

            cpoerschke Christine Poerschke
            rmp91 Rishabh Patel
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: