Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/PermissionData.java')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/PermissionData.java24
1 files changed, 14 insertions, 10 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/PermissionData.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/PermissionData.java
index aff8ad362..abd867c81 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/PermissionData.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/storage/PermissionData.java
@@ -174,24 +174,28 @@ public class PermissionData {
String[] defaultPerms = getPermissionData(null);
temp.writeInt(defaultPerms == null ? 0 : defaultPerms.length);
if (defaultPerms != null)
- for (int i = 0; i < defaultPerms.length; i++)
- temp.writeUTF(defaultPerms[i]);
+ for (String defaultPerm : defaultPerms) {
+ temp.writeUTF(defaultPerm);
+ }
String[] locs = getLocations();
temp.writeInt(locs == null ? 0 : locs.length);
if (locs != null)
- for (int i = 0; i < locs.length; i++) {
- temp.writeUTF(locs[i]);
- String[] perms = getPermissionData(locs[i]);
+ for (String loc : locs) {
+ temp.writeUTF(loc);
+ String[] perms = getPermissionData(loc);
temp.writeInt(perms == null ? 0 : perms.length);
- if (perms != null)
- for (int j = 0; j < perms.length; j++)
- temp.writeUTF(perms[j]);
+ if (perms != null) {
+ for (String perm : perms) {
+ temp.writeUTF(perm);
+ }
+ }
}
String[] condPerms = getConditionalPermissionInfos();
temp.writeInt(condPerms == null ? 0 : condPerms.length);
if (condPerms != null)
- for (int i = 0; i < condPerms.length; i++)
- temp.writeUTF(condPerms[i]);
+ for (String condPerm : condPerms) {
+ temp.writeUTF(condPerm);
+ }
temp.close();
out.writeInt(tempBytes.size());

Back to the top