Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-04-14 06:22:49 -0400
committerMichael Keppler2019-04-26 08:08:09 -0400
commit1ec405f058b677b8d83234d8fffa132f800cefd7 (patch)
treeb51caf24bf2501a6a5754deac75e8391b40a1eee /org.eclipse.egit.core.test/src
parent95bf547c006e288a7cd42b99f03ceaa42a9279b9 (diff)
downloadegit-1ec405f058b677b8d83234d8fffa132f800cefd7.tar.gz
egit-1ec405f058b677b8d83234d8fffa132f800cefd7.tar.xz
egit-1ec405f058b677b8d83234d8fffa132f800cefd7.zip
Remove unnecessary type specifications
Since Java 7 the diamond operator can be used instead of explicit typeparameters. Change-Id: I602e7b1bf45ca1c6612305e655fc4618742d0d4f Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'org.eclipse.egit.core.test/src')
-rw-r--r--org.eclipse.egit.core.test/src/org/eclipse/egit/core/GitMoveDeleteHookTest.java2
-rw-r--r--org.eclipse.egit.core.test/src/org/eclipse/egit/core/internal/indexdiff/IndexDiffDataTest.java8
-rw-r--r--org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/GitProjectSetCapabilityTest.java2
-rw-r--r--org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/CommitOperationTest.java2
-rw-r--r--org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/rebase/RebaseInteractivePlanTest.java4
5 files changed, 9 insertions, 9 deletions
diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/GitMoveDeleteHookTest.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/GitMoveDeleteHookTest.java
index 2100cd9f1..d63569468 100644
--- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/GitMoveDeleteHookTest.java
+++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/GitMoveDeleteHookTest.java
@@ -74,7 +74,7 @@ public class GitMoveDeleteHookTest {
Repository repository;
- Set<File> testDirs = new HashSet<File>();
+ Set<File> testDirs = new HashSet<>();
File workspaceSupplement;
diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/internal/indexdiff/IndexDiffDataTest.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/internal/indexdiff/IndexDiffDataTest.java
index 62a64ab29..5c6708982 100644
--- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/internal/indexdiff/IndexDiffDataTest.java
+++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/internal/indexdiff/IndexDiffDataTest.java
@@ -50,10 +50,10 @@ public class IndexDiffDataTest extends GitTestCase {
@Test
public void testMergeIgnored() {
Set<String> result;
- Set<String> expected = new HashSet<String>();
- Set<String> oldIgnoredPaths = new HashSet<String>();
- Collection<String> changedPaths = new HashSet<String>();
- Set<String> newIgnoredPaths = new HashSet<String>();
+ Set<String> expected = new HashSet<>();
+ Set<String> oldIgnoredPaths = new HashSet<>();
+ Collection<String> changedPaths = new HashSet<>();
+ Set<String> newIgnoredPaths = new HashSet<>();
result = mergeIgnored(oldIgnoredPaths, changedPaths, newIgnoredPaths);
assertEquals(expected, result);
diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/GitProjectSetCapabilityTest.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/GitProjectSetCapabilityTest.java
index 61bb8d1af..1c03438be 100644
--- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/GitProjectSetCapabilityTest.java
+++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/GitProjectSetCapabilityTest.java
@@ -56,7 +56,7 @@ public class GitProjectSetCapabilityTest {
private GitProjectSetCapability capability;
private List<IProject> createdProjects = new ArrayList<IProject>();
- private List<File> pathsToClean = new ArrayList<File>();
+ private List<File> pathsToClean = new ArrayList<>();
protected final static TestUtils testUtils = new TestUtils();
diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/CommitOperationTest.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/CommitOperationTest.java
index e3a396821..0a1b629f1 100644
--- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/CommitOperationTest.java
+++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/op/CommitOperationTest.java
@@ -239,7 +239,7 @@ public class CommitOperationTest extends GitTestCase {
}
private String[] getRepoRelativePaths(IFile[] files) {
- ArrayList<String> result = new ArrayList<String>();
+ ArrayList<String> result = new ArrayList<>();
for (IFile file:files)
result.add(file.getProjectRelativePath().toString());
return result.toArray(new String[0]);
diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/rebase/RebaseInteractivePlanTest.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/rebase/RebaseInteractivePlanTest.java
index 3c80b6c53..5560ab679 100644
--- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/rebase/RebaseInteractivePlanTest.java
+++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/test/rebase/RebaseInteractivePlanTest.java
@@ -172,11 +172,11 @@ public class RebaseInteractivePlanTest extends GitTestCase {
@Before
public void beforeTest() {
- testData1 = new LinkedList<Integer>();
+ testData1 = new LinkedList<>();
for (int i = 1; i <= 4; i++) {
testData1.add(Integer.valueOf(i));
}
- testData2 = new LinkedList<Integer>();
+ testData2 = new LinkedList<>();
for (int i = 5; i <= 10; i++) {
testData2.add(Integer.valueOf(i));
}

Back to the top