From 979791c7ee38923ed906fc19ca27555d2fea3b45 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Mon, 22 Feb 2016 08:27:47 +0100 Subject: [PATCH] Remove unnecessary cast to RepositoryMapping The collection mappings is a Collection so directly assign items in this collection to a variable of type RepositoryMapping and avoid an unnecessary unchecked cast. Change-Id: Idd9a1a58e69fe8a5aa00ec12f66be59d67aef06c Signed-off-by: Matthias Sohn --- .../src/org/eclipse/egit/core/project/GitProjectData.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/project/GitProjectData.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/project/GitProjectData.java index 87e4234b3..3d5133915 100644 --- a/org.eclipse.egit.core/src/org/eclipse/egit/core/project/GitProjectData.java +++ b/org.eclipse.egit.core/src/org/eclipse/egit/core/project/GitProjectData.java @@ -327,8 +327,7 @@ public class GitProjectData { * @throws CoreException */ public void markTeamPrivateResources() throws CoreException { - for (final Object rmObj : mappings) { - final RepositoryMapping rm = (RepositoryMapping)rmObj; + for (final RepositoryMapping rm : mappings) { final IContainer c = rm.getContainer(); if (c == null) continue; // Not fully mapped yet? -- 2.11.4.GIT