aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java
diff options
context:
space:
mode:
authorAdam Domurad <[email protected]>2012-05-25 11:44:13 -0400
committerAdam Domurad <[email protected]>2012-05-25 11:44:13 -0400
commit1705caf0db175cb9537313e5c1d9df14186f5bea (patch)
tree53e206445b682f387d27f3ba762eb70899caefa3 /plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java
parentef79a2eab042f66aa10a2356d9a6f80f5b8d544f (diff)
Changed for-loops over iterators and indices to for-each loops if they
were sufficient and clearer.
Diffstat (limited to 'plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java')
-rw-r--r--plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java b/plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java
index 402fa99..733c644 100644
--- a/plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java
+++ b/plugin/icedteanp/java/sun/applet/PluginAppletSecurityContext.java
@@ -1295,9 +1295,7 @@ public class PluginAppletSecurityContext {
Permissions grantedPermissions = new Permissions();
- for (int i = 0; i < nsPrivilegeList.length; i++) {
- String privilege = nsPrivilegeList[i];
-
+ for (String privilege : nsPrivilegeList) {
if (privilege.equals("UniversalBrowserRead")) {
BrowserReadPermission bp = new BrowserReadPermission();
grantedPermissions.add(bp);