refactor: remove redundant type arguments

This commit is contained in:
broDom
2017-07-03 17:17:39 +02:00
parent efac49ccf7
commit 656288857b
4 changed files with 4 additions and 4 deletions

View File

@@ -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 ---------------------------------------------------------

View File

@@ -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();

View File

@@ -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 {

View File

@@ -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);
}