示例#1
0
文件: TestError.java 项目: kuny/josm
  /**
   * 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);
  }
示例#2
0
文件: TestError.java 项目: kuny/josm
 /**
  * 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);
 }