package com.drumonii.loltrollbuild.batch.versions;

import com.drumonii.loltrollbuild.model.Version;
import org.springframework.batch.item.ItemProcessor;

/**
 * {@link ItemProcessor} for processing {@link Version}s from Riot's API.
 */
public class VersionsRetrievalItemProcessor implements ItemProcessor<Version, Version> {

	private Version latestVersion;

	public VersionsRetrievalItemProcessor(Version latestVersion) {
		this.latestVersion = latestVersion;
	}

	@Override
	public Version process(Version version) throws Exception {
		if (latestVersion == null || version.compareTo(latestVersion) > 0) {
			return version;
		}
		return null;
	}

}

@@ -514,25 +514,8 @@
 ion)
- throws Exception
  %7B%0A%09

Remove unnecessary throws Exception