package hk.ust.comp4321.database;

/**
 * 
 * @author Alex Poon
 */
public class DocInfo
{

  //Constants and fields.
  // -------------------------------------------------------------------------

  private String word;
  private int frequency;

  // Constructors.
  // -------------------------------------------------------------------------

  /**
   * This constrcutor encapsulates the word id and frequency in a document.
   * 
   * @param id      the word id to be inserted
   * @param frequency the associated frequency
   */
  public DocInfo(int id, int frequency)
  {
    this.id = id;
    this.frequency = frequency;
  }

  /**
   * This method returns the word id of the word instance.
   * 
   * @return the word id of the word instance 
   */
  public int getId()
  {
    return this.word;
  }

  /**
   * This method returns the frequency of the word instance.
   * 
   * @return the frequency of the word instance 
   */
  public int getFrequency()
  {
    return this.frequency;
  }
}

@@ -205,18 +205,13 @@
 ate 
-String wor
+int i
 d;%0A 
@@ -786,19 +786,17 @@
 rn this.
-wor
+i
 d;%0A  %7D%0A%0A

Fix variable name bug