/** * 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); }
/** * 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); }