8308016: Use snippets in java.io package

Reviewed-by: rriggs
This commit is contained in:
Brian Burkhalter 2023-05-23 16:00:40 +00:00
parent e9320f31dc
commit 710453c676
20 changed files with 152 additions and 132 deletions

View file

@ -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