src/java.base/share/classes/java/io/FilePermission.java
changeset 47478 438e0c9f2f17
parent 47216 71c04702a3d5
child 52427 3c6aa484536c
--- a/src/java.base/share/classes/java/io/FilePermission.java	Mon Oct 30 17:32:38 2017 -0700
+++ b/src/java.base/share/classes/java/io/FilePermission.java	Mon Oct 30 17:49:33 2017 -0700
@@ -698,7 +698,7 @@
             if (p2.equals(EMPTY_PATH)) {
                 return 0;
             } else if (p2.getName(0).equals(DOTDOT_PATH)) {
-                // "." contains p2 iif p2 has no "..". Since a
+                // "." contains p2 iff p2 has no "..". Since
                 // a normalized path can only have 0 or more
                 // ".." at the beginning. We only need to look
                 // at the head.
@@ -711,7 +711,7 @@
         } else if (p2.equals(EMPTY_PATH)) {
             int c1 = p1.getNameCount();
             if (!p1.getName(c1 - 1).equals(DOTDOT_PATH)) {
-                // "." is inside p1 iif p1 is 1 or more "..".
+                // "." is inside p1 iff p1 is 1 or more "..".
                 // For the same reason above, we only need to
                 // look at the tail.
                 return -1;