fix compiler warnings

This commit is contained in:
Sebastian Sdorra
2014-08-24 14:59:21 +02:00
parent be24164b88
commit 3f4cbf9e32
2 changed files with 5 additions and 7 deletions

View File

@@ -43,29 +43,27 @@ import java.util.Collection;
* @author Sebastian Sdorra
*
* @param <T> type of the model object
* @param <H> type of the handler
* @param <E> type of the exception
*/
public interface TypeManager<T extends ModelObject, E extends Exception>
extends Manager<T, E>
public interface TypeManager<T extends ModelObject, H extends Handler<T, E>,
E extends Exception> extends Manager<T, E>
{
/**
* Returns the handler for given type or
* null if no handler of that type is available.
*
*
* @param type name of the handler
* @param <H> type of the handler
*
* @return the handler for given type
*/
public <H extends Handler<T, E>> H getHandler(String type);
public H getHandler(String type);
/**
* Returns a {@link java.util.Collection} of all
* available and configured types.
*
*
* @return all available types
*/
public Collection<Type> getTypes();

View File

@@ -55,7 +55,7 @@ import javax.servlet.http.HttpServletRequest;
* @apiviz.uses sonia.scm.repository.RepositoryHandler
*/
public interface RepositoryManager
extends TypeManager<Repository, RepositoryException>
extends TypeManager<Repository, RepositoryHandler, RepositoryException>
{
/**