Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-08-25 15:33:24 +0000
committerKarsten Thoms2019-09-16 21:07:17 +0000
commitbb023c36e3964193edf7f82e8fee3478f33b30cc (patch)
tree033ee446d5527414458f70c6c9b9d804729f43a0 /bundles/org.eclipse.team.ui
parent2db141f0d5c2c388b7557c495680d48c3d977854 (diff)
downloadeclipse.platform.team-bb023c36e3964193edf7f82e8fee3478f33b30cc.tar.gz
eclipse.platform.team-bb023c36e3964193edf7f82e8fee3478f33b30cc.tar.xz
eclipse.platform.team-bb023c36e3964193edf7f82e8fee3478f33b30cc.zip
Remove unnecessary type specificationsI20190916-1800
Since Java 7 the diamond operator can be used instead of explicit type parameters. Change-Id: I2a5017574b71a0aa5125cf81efa784b3a3a05735 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'bundles/org.eclipse.team.ui')
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamUIPlugin.java2
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/ResourceMappingResourceDisplayArea.java2
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java2
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/LocalHistoryPage.java2
4 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamUIPlugin.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamUIPlugin.java
index 978e134ec..8848cd264 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamUIPlugin.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/TeamUIPlugin.java
@@ -88,7 +88,7 @@ public class TeamUIPlugin extends AbstractUIPlugin {
private WorkspaceTeamStateProvider provider;
- private Map<String, TeamStateProvider> decoratedStateProviders = new HashMap<String, TeamStateProvider>();
+ private Map<String, TeamStateProvider> decoratedStateProviders = new HashMap<>();
// manages synchronize participants
private SynchronizeManager synchronizeManager;
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/ResourceMappingResourceDisplayArea.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/ResourceMappingResourceDisplayArea.java
index 361c256c0..c7f1839c5 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/ResourceMappingResourceDisplayArea.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/ResourceMappingResourceDisplayArea.java
@@ -177,7 +177,7 @@ public class ResourceMappingResourceDisplayArea extends DialogArea {
try {
if (resource.getType() != IResource.FILE) {
IResource[] members = members(((IContainer)resource));
- List<ResourceTraversalElement> result = new ArrayList<ResourceTraversalElement>();
+ List<ResourceTraversalElement> result = new ArrayList<>();
for (IResource child : members) {
if ((includeFolders || child.getType() == IResource.FILE)
&& isIncludedInFilter(child, traversal))
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java
index e6d3b622a..8cc694e54 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/GenericHistoryView.java
@@ -284,7 +284,7 @@ public class GenericHistoryView extends PageBookView implements IHistoryView, IP
private IAction[] createActions() {
NavigationHistoryEntry[] entries = getDropDownEntries();
- List<NavigationHistoryEntryAction> actions = new ArrayList<NavigationHistoryEntryAction>();
+ List<NavigationHistoryEntryAction> actions = new ArrayList<>();
for (NavigationHistoryEntry navigationHistoryEntry : entries) {
actions.add(new NavigationHistoryEntryAction(navigationHistoryEntry));
}
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/LocalHistoryPage.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/LocalHistoryPage.java
index 24fcddc09..072339c1b 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/LocalHistoryPage.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/history/LocalHistoryPage.java
@@ -878,7 +878,7 @@ public class LocalHistoryPage extends HistoryPage implements IHistoryCompareAdap
//Everything before after week is previous
tempCategories[3] = new DateHistoryCategory(TeamUIMessages.HistoryPage_Previous, null, monthCal);
- ArrayList<AbstractHistoryCategory> finalCategories = new ArrayList<AbstractHistoryCategory>();
+ ArrayList<AbstractHistoryCategory> finalCategories = new ArrayList<>();
for (DateHistoryCategory tempCategory : tempCategories) {
tempCategory.collectFileRevisions(revisions, false);
if (tempCategory.hasRevisions()) {

Back to the top