Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2019-06-11 07:05:15 +0000
committerAlexander Kurtakov2019-06-11 07:05:15 +0000
commit57f73a80ecd119d590f7f5158b44858393031084 (patch)
treee650ea1aecea8db7f117b7117bc4f2039179936f
parentd3cb7d11cd44cc2887a0c79680d82711825e964e (diff)
downloadrt.equinox.p2-57f73a80ecd119d590f7f5158b44858393031084.tar.gz
rt.equinox.p2-57f73a80ecd119d590f7f5158b44858393031084.tar.xz
rt.equinox.p2-57f73a80ecd119d590f7f5158b44858393031084.zip
Fix warning in nightly build.
By @SuppressWarnings("unchecked") as even if the type is passed to the HashSet there is still warning about the list not being generified. Change-Id: If0aa369425fc59e8f256aa1d8740a0f202684063 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.ui.discovery/src/org/eclipse/equinox/internal/p2/ui/discovery/util/ControlListViewer.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.discovery/src/org/eclipse/equinox/internal/p2/ui/discovery/util/ControlListViewer.java b/bundles/org.eclipse.equinox.p2.ui.discovery/src/org/eclipse/equinox/internal/p2/ui/discovery/util/ControlListViewer.java
index fa59b48d9..80b3680b6 100644
--- a/bundles/org.eclipse.equinox.p2.ui.discovery/src/org/eclipse/equinox/internal/p2/ui/discovery/util/ControlListViewer.java
+++ b/bundles/org.eclipse.equinox.p2.ui.discovery/src/org/eclipse/equinox/internal/p2/ui/discovery/util/ControlListViewer.java
@@ -425,6 +425,7 @@ public abstract class ControlListViewer extends StructuredViewer {
//see bug 423628. This should be suppressed as:
//1. it will cause warning at build time.
//2. should be possible to fix once swt/jface enables generics for good.
+ @SuppressWarnings("unchecked")
HashSet<Object> elements = new HashSet<>(list);
Control[] children = control.getChildren();
for (Control c : children) {

Back to the top