mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-16 17:20:20 +01:00
fix compiler warnings
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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>
|
||||
{
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user