mirror of
				https://github.com/scm-manager/scm-manager.git
				synced 2025-10-31 18:46:07 +01:00 
			
		
		
		
	Fix small SonarQube findings
This commit is contained in:
		| @@ -41,7 +41,6 @@ import org.eclipse.jgit.transport.PushResult; | ||||
| import org.eclipse.jgit.transport.RemoteRefUpdate; | ||||
| import org.slf4j.Logger; | ||||
| import org.slf4j.LoggerFactory; | ||||
| import sonia.scm.repository.GitUtil; | ||||
| import sonia.scm.repository.GitWorkingCopyFactory; | ||||
| import sonia.scm.repository.InternalRepositoryException; | ||||
| import sonia.scm.repository.Person; | ||||
|   | ||||
| @@ -38,7 +38,6 @@ import org.eclipse.jgit.treewalk.filter.PathFilter; | ||||
| import org.eclipse.jgit.treewalk.filter.TreeFilter; | ||||
| import org.slf4j.Logger; | ||||
| import org.slf4j.LoggerFactory; | ||||
| import sonia.scm.ContextEntry; | ||||
| import sonia.scm.NotFoundException; | ||||
| import sonia.scm.repository.Changeset; | ||||
| import sonia.scm.repository.ChangesetPagingResult; | ||||
| @@ -171,7 +170,7 @@ public class GitLogComputer { | ||||
|       } else { | ||||
|         LOG.debug("the repository with id {} seems to be empty", this.repositoryId); | ||||
|  | ||||
|         return new ChangesetPagingResult(0, Collections.EMPTY_LIST); | ||||
|         return new ChangesetPagingResult(0, Collections.emptyList()); | ||||
|       } | ||||
|     } catch (MissingObjectException e) { | ||||
|       throw notFound(entity(GitLogCommand.REVISION, e.getObjectId().getName()).in(sonia.scm.repository.Repository.class, repositoryId)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user