Exemplo n.º 1
0
  public static Violation getViolation(String description) {
    if (violationsList == null) return null;

    Violation matchViolation = new Violation();
    for (Violation violation : violationsList) {
      if (description.equals(violation.getDescription())) {
        matchViolation = violation;
      }
    }
    return matchViolation;
  }