javagit/src/main/java/edu/nyu/cs/javagit/api/commands/GitBranchOptions.java
public void setOptNoMerged(boolean optNoMerged) {
    checkCanSetNoArgOption("--no-merged");
    if (optNoMerged && optMerged) {
      throw new IllegalArgumentException(ExceptionMessageMap.getMessage("000120")
          + "  --no-merged cannot be used with --merged.");
    } 
    this.optNoMerged = optNoMerged;
  }
public void setOptNoMerged(boolean optNoMerged) {
    checkCanSetNoArgOption("--no-merged");
    if (optNoMerged && optMerged) {
      throw new IllegalArgumentException(ExceptionMessageMap.getMessage("000120")
          + "  --no-merged cannot be used with --merged.");
    } 
    this.optNoMerged = optNoMerged;
  }
Checks whether the --no-merged option should be set and sets it.

@param optNoMerged True if the --no-merged option should be used, false otherwise.