improve AbstractImportHandler

This commit is contained in:
Sebastian Sdorra
2012-01-15 14:35:57 +01:00
parent 1d930d5537
commit 52212bb558
2 changed files with 11 additions and 20 deletions

View File

@@ -75,14 +75,6 @@ public abstract class AbstactImportHandler implements ImportHandler
*/
protected abstract AbstractRepositoryHandler<?> getRepositoryHandler();
/**
* Method description
*
*
* @return
*/
protected abstract String getTypeName();
//~--- methods --------------------------------------------------------------
/**
@@ -201,4 +193,15 @@ public abstract class AbstactImportHandler implements ImportHandler
getRepositoryHandler().getConfig().getRepositoryDirectory(),
repositoryName);
}
/**
* Method description
*
*
* @return
*/
private String getTypeName()
{
return getRepositoryHandler().getType().getName();
}
}

View File

@@ -94,18 +94,6 @@ public class GitImportHandler extends AbstactImportHandler
return handler;
}
/**
* Method description
*
*
* @return
*/
@Override
protected String getTypeName()
{
return GitRepositoryHandler.TYPE_NAME;
}
//~--- fields ---------------------------------------------------------------
/** Field description */