mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
remove unused imports
This commit is contained in:
@@ -38,20 +38,12 @@ package sonia.scm.repository.spi;
|
||||
import com.google.common.base.Strings;
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
import org.eclipse.jgit.api.Git;
|
||||
import org.eclipse.jgit.api.errors.GitAPIException;
|
||||
import org.eclipse.jgit.api.errors.NoHeadException;
|
||||
import org.eclipse.jgit.errors.IncorrectObjectTypeException;
|
||||
import org.eclipse.jgit.errors.MissingObjectException;
|
||||
import org.eclipse.jgit.errors.StopWalkException;
|
||||
import org.eclipse.jgit.lib.ObjectId;
|
||||
import org.eclipse.jgit.lib.Repository;
|
||||
import org.eclipse.jgit.revwalk.RevCommit;
|
||||
import org.eclipse.jgit.revwalk.RevWalk;
|
||||
import org.eclipse.jgit.revwalk.filter.RevFilter;
|
||||
import org.eclipse.jgit.treewalk.filter.AndTreeFilter;
|
||||
import org.eclipse.jgit.treewalk.filter.PathFilter;
|
||||
import org.eclipse.jgit.treewalk.filter.PathFilterGroup;
|
||||
import org.eclipse.jgit.treewalk.filter.TreeFilter;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
@@ -68,7 +60,6 @@ import sonia.scm.util.IOUtil;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ import com.google.common.collect.Lists;
|
||||
|
||||
import org.eclipse.jgit.api.Git;
|
||||
import org.eclipse.jgit.api.errors.GitAPIException;
|
||||
import org.eclipse.jgit.revwalk.RevTag;
|
||||
import org.eclipse.jgit.lib.Ref;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@@ -52,7 +52,6 @@ import sonia.scm.repository.Tag;
|
||||
import java.io.IOException;
|
||||
|
||||
import java.util.List;
|
||||
import org.eclipse.jgit.lib.Ref;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -61,6 +60,9 @@ import org.eclipse.jgit.lib.Ref;
|
||||
public class GitTagsCommand extends AbstractGitCommand implements TagsCommand
|
||||
{
|
||||
|
||||
/** Field description */
|
||||
private static final String PREFIX_TAG = "refs/tags/";
|
||||
|
||||
/**
|
||||
* the logger for GitTagsCommand
|
||||
*/
|
||||
@@ -83,8 +85,6 @@ public class GitTagsCommand extends AbstractGitCommand implements TagsCommand
|
||||
|
||||
//~--- get methods ----------------------------------------------------------
|
||||
|
||||
private static final String PREFIX_TAG = "refs/tags/";
|
||||
|
||||
/**
|
||||
* Method description
|
||||
*
|
||||
@@ -111,9 +111,12 @@ public class GitTagsCommand extends AbstractGitCommand implements TagsCommand
|
||||
public Tag apply(Ref input)
|
||||
{
|
||||
String name = input.getName();
|
||||
if ( name.startsWith(PREFIX_TAG) ){
|
||||
|
||||
if (name.startsWith(PREFIX_TAG))
|
||||
{
|
||||
name = name.substring(PREFIX_TAG.length());
|
||||
}
|
||||
|
||||
return new Tag(name, input.getObjectId().name());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user