/**
 * Copyright Alex Objelean
 */
package ro.isdc.wro.extensions.processor.algorithm.jshint;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * @author Alex Objelean
 */
public class JsError
  implements Serializable {
  /**
   * The line (relative to 0) at which the lint was found
   */
  private int line;
  /**
   * The character (relative to 0) at which the lint was found
   */
  private int character;
  /**
   * The problem
   */
  private String reason;
  /**
   * The text line in which the problem occurred
   */
  private String evidence;
  /**
   * The raw message before the details were inserted
   */
  private String raw;
  /**
   * @return the line
   */
  public int getLine() {
    return this.line;
  }
  /**
   * @param line the line to set
   */
  public void setLine(final int line) {
    this.line = line;
  }
  /**
   * @return the character
   */
  public int getCharacter() {
    return this.character;
  }
  /**
   * @param character the character to set
   */
  public void setCharacter(final int character) {
    this.character = character;
  }
  /**
   * @return the reason
   */
  public String getReason() {
    return this.reason;
  }
  /**
   * @param reason the reason to set
   */
  public void setReason(final String reason) {
    this.reason = reason;
  }
  /**
   * @return the evidence
   */
  public String getEvidence() {
    return this.evidence;
  }
  /**
   * @param evidence the evidence to set
   */
  public void setEvidence(final String evidence) {
    this.evidence = evidence;
  }
  /**
   * @return the raw
   */
  public String getRaw() {
    return this.raw;
  }
  /**
   * @param raw the raw to set
   */
  public void setRaw(final String raw) {
    this.raw = raw;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public String toString() {
    return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
  }
}

@@ -239,16 +239,18 @@
 yle;%0D%0A%0D%0A
+%0D%0A
 /**%0D%0A * 
@@ -277,16 +277,45 @@
 n%0D%0A */%0D%0A
+@SuppressWarnings(%22serial%22)%0D%0A
 public c
@@ -709,98 +709,10 @@
 e;%0D%0A
-  /**%0D%0A   * The raw message before the details were inserted%0D%0A   */%0D%0A  private String raw;
+%0D%0A
 %0D%0A  
@@ -792,32 +792,36 @@
 his.line;%0D%0A  %7D%0D%0A
+%0D%0A%0D%0A
   /**%0D%0A   * @par
@@ -913,32 +913,36 @@
 e = line;%0D%0A  %7D%0D%0A
+%0D%0A%0D%0A
   /**%0D%0A   * @ret
@@ -1023,32 +1023,36 @@
 haracter;%0D%0A  %7D%0D%0A
+%0D%0A%0D%0A
   /**%0D%0A   * @par
@@ -1174,32 +1174,36 @@
 haracter;%0D%0A  %7D%0D%0A
+%0D%0A%0D%0A
   /**%0D%0A   * @ret
@@ -1278,32 +1278,36 @@
 s.reason;%0D%0A  %7D%0D%0A
+%0D%0A%0D%0A
   /**%0D%0A   * @par
@@ -1414,32 +1414,36 @@
 = reason;%0D%0A  %7D%0D%0A
+%0D%0A%0D%0A
   /**%0D%0A   * @ret
@@ -1524,32 +1524,36 @@
 evidence;%0D%0A  %7D%0D%0A
+%0D%0A%0D%0A
   /**%0D%0A   * @par
@@ -1684,211 +1684,8 @@
  %7D%0D%0A
-  /**%0D%0A   * @return the raw%0D%0A   */%0D%0A  public String getRaw() %7B%0D%0A    return this.raw;%0D%0A  %7D%0D%0A  /**%0D%0A   * @param raw the raw to set%0D%0A   */%0D%0A  public void setRaw(final String raw) %7B%0D%0A    this.raw = raw;%0D%0A  %7D
 %0D%0A%0D%0A

remove raw message from JsError