package sagan.tools.support;

import sagan.tools.Download;
import sagan.tools.Release;
import sagan.tools.ToolSuiteDownloads;

class ToolXmlConverter {

    public ToolSuiteDownloads convert(ToolSuiteXml toolSuiteXml, String toolSuiteName, String shortName) {
        ToolSuiteBuilder state = new ToolSuiteBuilder(shortName);

        for (Release release : toolSuiteXml.getReleases()) {
            if (!release.getName().startsWith(toolSuiteName)) {
	            continue;
            }
			state.setWhatsNew(release.getWhatsnew());
            for (Download download : release.getDownloads()) {
                state.addDownload(download);
            }
        }

        return state.build();
    }

}

package sagan.tools.support;

import sagan.tools.Download;
import sagan.tools.Release;
import sagan.tools.ToolSuiteDownloads;

class ToolXmlConverter {

    public ToolSuiteDownloads convert(ToolSuiteXml toolSuiteXml, String toolSuiteName, String shortName) {
        ToolSuiteBuilder state = new ToolSuiteBuilder(shortName);

        for (Release release : toolSuiteXml.getReleases()) {
            if (!release.getName().startsWith(toolSuiteName)) {
                continue;
            }
            state.setWhatsNew(release.getWhatsnew());
            for (Download download : release.getDownloads()) {
                state.addDownload(download);
            }
        }

        return state.build();
    }

}

Fix whitespace