package uk.ac.ebi.quickgo.annotation.validation.loader;

import uk.ac.ebi.quickgo.annotation.validation.model.ValidationEntities;
import uk.ac.ebi.quickgo.annotation.validation.model.ValidationEntity;
import uk.ac.ebi.quickgo.annotation.validation.service.ValidationEntityChecker;

import com.google.common.base.Preconditions;
import java.util.List;
import org.springframework.batch.item.ItemWriter;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Aggregate ValidationEntity instances.
 *
 * @author Tony Wardell
 * Date: 24/11/2016
 * Time: 11:56
 * Created with IntelliJ IDEA.
 */
public class ValidationEntitiesAggregator implements ItemWriter<ValidationEntity> {

    private final ValidationEntityChecker validationEntityChecker;

    @Autowired
    public ValidationEntitiesAggregator(ValidationEntityChecker validationEntityChecker) {
        this.validationEntityChecker = validationEntityChecker;
    }

    @Override public void write(List<? extends ValidationEntity> items) {
        Preconditions.checkArgument(items != null, "The list of items written to ValidationEntitiesAggregator " +
                "cannot be null.");
        this.validationEntityChecker.addEntities(items);
    }

}

@@ -54,81 +54,8 @@
 r;%0A%0A
-import uk.ac.ebi.quickgo.annotation.validation.model.ValidationEntities;%0A
 impo
@@ -526,23 +526,16 @@
 EA.%0A */%0A
-public 
 class Va

Make class package private.