mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-07-09 11:53:46 +02:00
refactor: remove redundant type arguments
This commit is contained in:
@@ -51,7 +51,7 @@ public final class HealthCheckResult
|
||||
|
||||
/** healthy result */
|
||||
private static final HealthCheckResult HEALTHY =
|
||||
new HealthCheckResult(ImmutableSet.<HealthCheckFailure>of());
|
||||
new HealthCheckResult(ImmutableSet.of());
|
||||
|
||||
//~--- constructors ---------------------------------------------------------
|
||||
|
||||
|
||||
@@ -419,7 +419,7 @@ public class RepositoryImportResource
|
||||
{
|
||||
logger.debug("start directory import, using normal import handler");
|
||||
result = new ImportResult(importHandler.importRepositories(manager),
|
||||
ImmutableList.<String>of());
|
||||
ImmutableList.of());
|
||||
}
|
||||
|
||||
response = Response.ok(result).build();
|
||||
|
||||
@@ -568,7 +568,7 @@ public class DefaultRepositoryManagerTest extends ManagerTestBase<Repository, Re
|
||||
}
|
||||
|
||||
private RepositoryMatcher createRepositoryMatcher() {
|
||||
return new RepositoryMatcher(Collections.<RepositoryPathMatcher>emptySet());
|
||||
return new RepositoryMatcher(Collections.emptySet());
|
||||
}
|
||||
|
||||
private Repository createRepository(Repository repository) throws RepositoryException, IOException {
|
||||
|
||||
@@ -48,7 +48,7 @@ public class RepositoryMatcherTest {
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
Set<RepositoryPathMatcher> pathMatchers = Sets.<RepositoryPathMatcher>newHashSet(new AbcRepositoryPathMatcher());
|
||||
Set<RepositoryPathMatcher> pathMatchers = Sets.newHashSet(new AbcRepositoryPathMatcher());
|
||||
this.matcher = new RepositoryMatcher(pathMatchers);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user