Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/wizard/CertificateImportCertSelectPage.java')
-rw-r--r--bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/wizard/CertificateImportCertSelectPage.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/wizard/CertificateImportCertSelectPage.java b/bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/wizard/CertificateImportCertSelectPage.java
index b1d9e911e..2b9102844 100644
--- a/bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/wizard/CertificateImportCertSelectPage.java
+++ b/bundles/org.eclipse.equinox.security.ui/src/org/eclipse/equinox/internal/security/ui/wizard/CertificateImportCertSelectPage.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2008 IBM Corporation and others.
+ * Copyright (c) 2007, 2017 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
@@ -26,7 +26,7 @@ public class CertificateImportCertSelectPage extends WizardPage implements Liste
private Composite certPreview;
private Combo certDropDown;
- private List certList;
+ private List<Certificate> certList;
static CertificateFactory certFact;
@@ -75,10 +75,10 @@ public class CertificateImportCertSelectPage extends WizardPage implements Liste
certDropDown.removeAll();
try {
- certList = new ArrayList();
- Collection collection = certFact.generateCertificates(new FileInputStream(certImportWizard.selectedImportFile));
+ certList = new ArrayList<>();
+ Collection<? extends Certificate> collection = certFact.generateCertificates(new FileInputStream(certImportWizard.selectedImportFile));
// For a set or list
- for (Iterator it = collection.iterator(); it.hasNext();) {
+ for (Iterator<? extends Certificate> it = collection.iterator(); it.hasNext();) {
certList.add(it.next());
}

Back to the top