jdk/src/share/classes/java/lang/Package.java
changeset 22581 e868cde95050
parent 18546 862067c6481c
child 25176 3c2ba9344cbf
--- a/jdk/src/share/classes/java/lang/Package.java	Mon Jan 27 17:13:16 2014 +0400
+++ b/jdk/src/share/classes/java/lang/Package.java	Mon Jan 27 14:29:37 2014 +0100
@@ -557,8 +557,8 @@
         // First, update the system package map with new package names
         String[] names = getSystemPackages0();
         synchronized (pkgs) {
-            for (int i = 0; i < names.length; i++) {
-                defineSystemPackage(names[i], getSystemPackage0(names[i]));
+            for (String name : names) {
+                defineSystemPackage(name, getSystemPackage0(name));
             }
             return pkgs.values().toArray(new Package[pkgs.size()]);
         }