Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/activities/WorkbenchActivityHelper.java')
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/activities/WorkbenchActivityHelper.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/activities/WorkbenchActivityHelper.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/activities/WorkbenchActivityHelper.java
index 05933cc5bfc..d94c94d5123 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/activities/WorkbenchActivityHelper.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/activities/WorkbenchActivityHelper.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2003, 2009 IBM Corporation and others.
+ * Copyright (c) 2003, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -597,9 +597,10 @@ public final class WorkbenchActivityHelper {
*
* @since 3.4
*/
- public static Collection restrictCollection(Collection toBeFiltered, Collection result) {
- for (Iterator iterator = toBeFiltered.iterator(); iterator.hasNext();) {
- Object item = iterator.next();
+ public static <T> Collection<T> restrictCollection(Collection<T> toBeFiltered,
+ Collection<T> result) {
+ for (Iterator<T> iterator = toBeFiltered.iterator(); iterator.hasNext();) {
+ T item = iterator.next();
if (!restrictUseOf(item)) {
result.add(item);
}

Back to the top