diff options
Diffstat (limited to 'java')
-rw-r--r-- | java/io/FilePermission.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/java/io/FilePermission.java b/java/io/FilePermission.java index 9a83efba6..0872a378b 100644 --- a/java/io/FilePermission.java +++ b/java/io/FilePermission.java @@ -274,12 +274,7 @@ public final class FilePermission extends Permission implements Serializable break; default: - if (f2.charAt(f2.length() - 1) == File.separatorChar) - { - if (! f1.equals(f2.substring(0, f2.length() - 1))) - return false; - } - else if (!f1.equals(f2)) + if (!f1.equals(f2)) return false; break; } |