package org.quattor.pan.repository;

import org.quattor.pan.exceptions.ConfigurationException;

public class SourceRepositoryFactory {

	private SourceRepositoryFactory() {
	}

	public static SourceRepository create(ParameterList parameters)
			throws ConfigurationException {

		if (parameters == null) {
			parameters = new ParameterList();
		}

		return FileSystemSourceRepository.getInstance(parameters);
	}

}

package org.quattor.pan.repository;

import org.quattor.pan.exceptions.ConfigurationException;

public class SourceRepositoryFactory {

	private SourceRepositoryFactory() {
	}

	public static SourceRepository create(ParameterList parameters)
			throws ConfigurationException {

		return FileSystemSourceRepository.getInstance(parameters);
	}

}

remove redundant check for null parameters