All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.codemodder.remediation.FixCandidate Maven / Gradle / Ivy

package io.codemodder.remediation;

import com.github.javaparser.ast.Node;
import java.util.List;
import java.util.Objects;

/**
 * The potential fix location. Associates a relevant node, gathered by the searcher, with the issue
 * of type T.
 */
public record FixCandidate(Node node, List issues) {

  public FixCandidate {
    Objects.requireNonNull(node);
    Objects.requireNonNull(issues);
    if (issues.isEmpty()) {
      throw new IllegalArgumentException("issues cannot be empty");
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy