mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-22 22:50:11 +01:00
refactor: remove explicit type arguments
This commit is contained in:
@@ -90,7 +90,7 @@ public class GetRepositoriesITCase extends AbstractAdminITCaseBase
|
||||
@Parameters
|
||||
public static Collection<String[]> createParameters()
|
||||
{
|
||||
Collection<String[]> params = new ArrayList<String[]>();
|
||||
Collection<String[]> params = new ArrayList<>();
|
||||
|
||||
params.add(new String[] { "git" });
|
||||
params.add(new String[] { "svn" });
|
||||
|
||||
@@ -89,7 +89,7 @@ public class GroupITCase extends AbstractAdminITCaseBase
|
||||
group.setName("group-a");
|
||||
group.setDescription("group a");
|
||||
|
||||
List<String> members = new ArrayList<String>();
|
||||
List<String> members = new ArrayList<>();
|
||||
|
||||
members.add("slarti");
|
||||
members.add("marvin");
|
||||
@@ -110,7 +110,7 @@ public class GroupITCase extends AbstractAdminITCaseBase
|
||||
group.setName("group-b");
|
||||
group.setDescription("group b");
|
||||
|
||||
List<String> members = new ArrayList<String>();
|
||||
List<String> members = new ArrayList<>();
|
||||
|
||||
members.add("slarti");
|
||||
members.add("dent");
|
||||
|
||||
@@ -59,7 +59,7 @@ public class RepositoryTypeITCaseBase
|
||||
@Parameters
|
||||
public static Collection<String[]> createParameters()
|
||||
{
|
||||
Collection<String[]> params = new ArrayList<String[]>();
|
||||
Collection<String[]> params = new ArrayList<>();
|
||||
|
||||
params.add(new String[] { "git" });
|
||||
params.add(new String[] { "svn" });
|
||||
|
||||
@@ -284,7 +284,7 @@ public class DefaultAdvancedHttpClientTest
|
||||
public void setUp()
|
||||
{
|
||||
configuration = new ScmConfiguration();
|
||||
transformers = new HashSet<ContentTransformer>();
|
||||
transformers = new HashSet<>();
|
||||
client = new TestingAdvacedHttpClient(configuration, transformers);
|
||||
}
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ public class DefaultUberWebResourceLoaderTest extends WebResourceLoaderTestBase
|
||||
|
||||
DefaultUberWebResourceLoader resourceLoader =
|
||||
new DefaultUberWebResourceLoader(servletContext,
|
||||
new ArrayList<PluginWrapper>());
|
||||
new ArrayList<>());
|
||||
|
||||
resourceLoader.getCache().put("/myresource", GITHUB);
|
||||
|
||||
@@ -152,7 +152,7 @@ public class DefaultUberWebResourceLoaderTest extends WebResourceLoaderTestBase
|
||||
|
||||
WebResourceLoader resourceLoader =
|
||||
new DefaultUberWebResourceLoader(servletContext,
|
||||
new ArrayList<PluginWrapper>());
|
||||
new ArrayList<>());
|
||||
URL resource = resourceLoader.getResource("/myresource");
|
||||
|
||||
assertSame(SCM_MANAGER, resource);
|
||||
|
||||
@@ -66,7 +66,7 @@ public class PluginTreeTest
|
||||
public void testPluginConditionFailed() throws IOException
|
||||
{
|
||||
PluginCondition condition = new PluginCondition("999",
|
||||
new ArrayList<String>(), "hit");
|
||||
new ArrayList<>(), "hit");
|
||||
Plugin plugin = new Plugin(2, createInfo("a", "b", "1"), null, condition,
|
||||
false, null);
|
||||
ExplodedSmp smp = createSmp(plugin);
|
||||
|
||||
Reference in New Issue
Block a user