mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8308016: Use snippets in java.io package
Reviewed-by: rriggs
This commit is contained in:
parent
e9320f31dc
commit
710453c676
20 changed files with 152 additions and 132 deletions
|
@ -1588,9 +1588,9 @@ public class File
|
|||
* <p> An invocation of this method of the form {@code file.setWritable(arg)}
|
||||
* behaves in exactly the same way as the invocation
|
||||
*
|
||||
* <pre>{@code
|
||||
* {@snippet lang=java :
|
||||
* file.setWritable(arg, true)
|
||||
* }</pre>
|
||||
* }
|
||||
*
|
||||
* @param writable
|
||||
* If {@code true}, sets the access permission to allow write
|
||||
|
@ -1667,9 +1667,9 @@ public class File
|
|||
* <p>An invocation of this method of the form {@code file.setReadable(arg)}
|
||||
* behaves in exactly the same way as the invocation
|
||||
*
|
||||
* <pre>{@code
|
||||
* {@snippet lang=java :
|
||||
* file.setReadable(arg, true)
|
||||
* }</pre>
|
||||
* }
|
||||
*
|
||||
* @param readable
|
||||
* If {@code true}, sets the access permission to allow read
|
||||
|
@ -1749,9 +1749,9 @@ public class File
|
|||
* <p>An invocation of this method of the form {@code file.setExcutable(arg)}
|
||||
* behaves in exactly the same way as the invocation
|
||||
*
|
||||
* <pre>{@code
|
||||
* {@snippet lang=java :
|
||||
* file.setExecutable(arg, true)
|
||||
* }</pre>
|
||||
* }
|
||||
*
|
||||
* @param executable
|
||||
* If {@code true}, sets the access permission to allow execute
|
||||
|
@ -2370,10 +2370,10 @@ public class File
|
|||
*
|
||||
* <p> The first invocation of this method works as if invoking it were
|
||||
* equivalent to evaluating the expression:
|
||||
* <blockquote><pre>
|
||||
* {@link java.nio.file.FileSystems#getDefault FileSystems.getDefault}().{@link
|
||||
* java.nio.file.FileSystem#getPath getPath}(this.{@link #getPath getPath}());
|
||||
* </pre></blockquote>
|
||||
* {@snippet lang=java :
|
||||
* // @link regex="getPath(?=\(t)" target="java.nio.file.FileSystem#getPath" :
|
||||
* FileSystems.getDefault().getPath(this.getPath());
|
||||
* }
|
||||
* Subsequent invocations of this method return the same {@code Path}.
|
||||
*
|
||||
* <p> If this abstract pathname is the empty abstract pathname then this
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue