Beispiel #1
0
  /**
   * Fixes the error with the appropriate command
   *
   * @return The command to fix the error
   */
  public Command getFix() {
    if (tester == null || !tester.isFixable(this) || primitives.isEmpty()) return null;

    return tester.fixError(this);
  }
Beispiel #2
0
 /**
  * Returns true if the error can be fixed automatically
  *
  * @return true if the error can be fixed
  */
 public boolean isFixable() {
   return tester != null && tester.isFixable(this);
 }