Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/security/BaseSecurityTest.java')
-rw-r--r--bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/security/BaseSecurityTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/security/BaseSecurityTest.java b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/security/BaseSecurityTest.java
index 789c86290..a3d356d17 100644
--- a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/security/BaseSecurityTest.java
+++ b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/security/BaseSecurityTest.java
@@ -60,8 +60,8 @@ public class BaseSecurityTest extends CoreTest {
protected static void addDefaultSecurityBundles(ConfigurationSessionTestSuite suite) {
String[] ids = ConfigurationSessionTestSuite.MINIMAL_BUNDLE_SET;
- for (int i = 0; i < ids.length; i++) {
- suite.addBundle(ids[i]);
+ for (String id : ids) {
+ suite.addBundle(id);
}
suite.addBundle(BUNDLE_SECURITY_TESTS);
}
@@ -72,8 +72,8 @@ public class BaseSecurityTest extends CoreTest {
protected static Certificate[] getTestCertificateChain(String[] aliases) throws KeyStoreException {
ArrayList certs = new ArrayList(aliases.length);
- for (int i = 0; i < aliases.length; i++) {
- certs.add(getTestCertificate(aliases[i]));
+ for (String alias : aliases) {
+ certs.add(getTestCertificate(alias));
}
return (Certificate[]) certs.toArray(new Certificate[] {});
}

Back to the top