Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.egit.core/src/org/eclipse/egit/core/internal/ProjectReferenceImporter.java')
-rw-r--r--org.eclipse.egit.core/src/org/eclipse/egit/core/internal/ProjectReferenceImporter.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/ProjectReferenceImporter.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/ProjectReferenceImporter.java
index 1482680970..513589fb08 100644
--- a/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/ProjectReferenceImporter.java
+++ b/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/ProjectReferenceImporter.java
@@ -130,7 +130,7 @@ public class ProjectReferenceImporter {
if (repositoryAlreadyExistsForUrl(repositoryPath, gitUrl))
return repositoryPath;
else {
- final Collection<String> projectNames = new LinkedList<String>();
+ final Collection<String> projectNames = new LinkedList<>();
for (final ProjectReference projectReference : projects)
projectNames.add(projectReference.getProjectDir());
throw new TeamException(
@@ -168,14 +168,14 @@ public class ProjectReferenceImporter {
Map<String, Set<ProjectReference>> repositoryBranches = repositories
.get(projectReference.getRepository());
if (repositoryBranches == null) {
- repositoryBranches = new HashMap<String, Set<ProjectReference>>();
+ repositoryBranches = new HashMap<>();
repositories.put(projectReference.getRepository(),
repositoryBranches);
}
Set<ProjectReference> projectReferences = repositoryBranches
.get(projectReference.getBranch());
if (projectReferences == null) {
- projectReferences = new LinkedHashSet<ProjectReference>();
+ projectReferences = new LinkedHashSet<>();
repositoryBranches.put(projectReference.getBranch(),
projectReferences);
}

Back to the top