Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2016-04-20 15:52:36 +0000
committerMatthias Sohn2016-04-20 20:48:04 +0000
commit2c9886d5bc57433677e51d87c9f86c3631fd24c6 (patch)
tree1db2ebc020471bd3d9128c0b711184b9c9fc2ab6 /org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceMapping.java
parentcbf2b618d65428bfa10293c5cb47423240aad0cb (diff)
downloadegit-2c9886d5bc57433677e51d87c9f86c3631fd24c6.tar.gz
egit-2c9886d5bc57433677e51d87c9f86c3631fd24c6.tar.xz
egit-2c9886d5bc57433677e51d87c9f86c3631fd24c6.zip
Remove redundant type information from org.eclipse.egit.ui
org.eclipse.egit.ui has been upgraded to Java 1.7 a while ago. This allows to avoid the redundant definition of type information. This commit removes them and set the compiler level to errors for these to avoid creating this redundant information again. Change-Id: Ia0c0a65abf19d97e3a2a290d9930aaa0a259f6ec Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceMapping.java')
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceMapping.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceMapping.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceMapping.java
index eda5ca3b07..97c372dbe6 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceMapping.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/decorators/DecoratableResourceMapping.java
@@ -64,7 +64,7 @@ public class DecoratableResourceMapping extends DecoratableResource {
return;
// collect repositories to allow decoration of mappings (bug 369969)
- Set<Repository> repositories = new HashSet<Repository>(projects.length);
+ Set<Repository> repositories = new HashSet<>(projects.length);
// we could use DecoratableResourceAdapter for each project, but that would be too much overhead,
// as we need only very little information at all...
@@ -113,7 +113,7 @@ public class DecoratableResourceMapping extends DecoratableResource {
.getBranchStatus(repository);
} else if(repositories.size() > 1) {
// collect branch names but skip branch status (doesn't make sense)
- Set<String> branches = new HashSet<String>(2);
+ Set<String> branches = new HashSet<>(2);
for (Repository repository : repositories) {
branches.add(DecoratableResourceHelper
.getShortBranch(repository));

Back to the top