Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/AvailableIUGroup.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/AvailableIUGroup.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/AvailableIUGroup.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/AvailableIUGroup.java
index d0b23ff82..62ee88dd8 100644
--- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/AvailableIUGroup.java
+++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/AvailableIUGroup.java
@@ -296,7 +296,7 @@ public class AvailableIUGroup extends StructuredIUGroup {
@Override
public Object[] getSelectedIUElements() {
Object[] elements = ((IStructuredSelection) viewer.getSelection()).toArray();
- ArrayList<Object> list = new ArrayList<Object>(elements.length);
+ ArrayList<Object> list = new ArrayList<>(elements.length);
for (int i = 0; i < elements.length; i++)
if (ElementUtils.getIU(elements[i]) != null)
list.add(elements[i]);
@@ -315,7 +315,7 @@ public class AvailableIUGroup extends StructuredIUGroup {
Object[] selections = filteredTree.getCheckedElements(); // Get all the elements that have been selected, not just the visible ones
if (selections.length == 0)
return new IInstallableUnit[0];
- ArrayList<IInstallableUnit> leaves = new ArrayList<IInstallableUnit>(selections.length);
+ ArrayList<IInstallableUnit> leaves = new ArrayList<>(selections.length);
for (int i = 0; i < selections.length; i++) {
if (!getCheckboxTreeViewer().getGrayed(selections[i])) {
IInstallableUnit iu = ProvUI.getAdapter(selections[i], IInstallableUnit.class);

Back to the top