Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6329161

Doc typo in File.java

XMLWordPrintable

    • b57
    • generic
    • generic
    • Verified

      ownerOnly is inconsistently spelled.

      --- /tmp/geta7831 2005-09-27 00:55:18.199049000 -0700
      +++ File.java 2005-09-27 00:55:13.778851000 -0700
      @@ -1371,20 +1371,20 @@
            * @throws SecurityException
            * If a security manager exists and its <code>{@link
            * java.lang.SecurityManager#checkWrite(java.lang.String)}</code>
            * method denies write access to the file
            *
            * @since 1.6
            */
      - public boolean setReadable(boolean readable, boolean owneronly) {
      + public boolean setReadable(boolean readable, boolean ownerOnly) {
        SecurityManager security = System.getSecurityManager();
        if (security != null) {
        security.checkWrite(path);
        }
      - return fs.setPermission(this, FileSystem.ACCESS_READ, readable, owneronly);
      + return fs.setPermission(this, FileSystem.ACCESS_READ, readable, ownerOnly);
           }
       
           /**
            * A convenience method to set the owner's read permission for this abstract
            * pathname.
            *
            * <p>An invocation of this method of the form <tt>file.setReadable(arg)</tt>

            sherman Xueming Shen
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: