Mark old import handler api as deprecated

This commit is contained in:
Eduard Heimbuch
2020-11-27 13:30:01 +01:00
parent 74fc70e942
commit 275ca49f71
8 changed files with 40 additions and 28 deletions

View File

@@ -41,8 +41,10 @@ import java.util.List;
* {@link AdvancedImportHandler}.
*
* @author Sebastian Sdorra
* @since 1.12
* @deprecated
* @since 2.11.0
*/
@Deprecated
public abstract class AbstactImportHandler implements AdvancedImportHandler
{

View File

@@ -30,8 +30,10 @@ package sonia.scm.repository;
* {@link ImportHandler}.
*
* @author Sebastian Sdorra
* @since 1.43
* @deprecated
* @since 2.11.0
*/
@Deprecated
public interface AdvancedImportHandler extends ImportHandler
{

View File

@@ -21,7 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package sonia.scm.repository;
//~--- JDK imports ------------------------------------------------------------
@@ -33,20 +33,20 @@ import java.util.List;
* Searches and import existing repositories.
*
* @author Sebastian Sdorra
* @since 1.12
* @since 2.11.0
* @deprecated
*/
public interface ImportHandler
{
@Deprecated
public interface ImportHandler {
/**
* Import existing and non managed repositories.
*
*
* @param manager The global {@link RepositoryManager}
*
*
* @return a {@link List} names of imported repositories
* @throws IOException
* @since 2.11.0
* @deprecated
*/
public List<String> importRepositories(RepositoryManager manager) throws IOException;
}

View File

@@ -38,11 +38,13 @@ import static com.google.common.base.Preconditions.checkNotNull;
* Import result of the {@link AdvancedImportHandler}.
*
* @author Sebastian Sdorra
* @since 1.43
* @deprecated
* @since 2.11.0
*/
@EqualsAndHashCode
@ToString
@Getter
@Deprecated
public final class ImportResult {
/**

View File

@@ -48,7 +48,8 @@ public interface RepositoryHandler
*
*
* @return {@link ImportHandler} for the repository type of this handler
* @since 1.12
* @deprecated
* @since 2.11.0
*
* @throws FeatureNotSupportedException
*/