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

    • Type: Bug
    • Status: Closed
    • Priority: 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?

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: