mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8213911: Use example.com in java.net and other examples
Reviewed-by: prappo, chegar, rriggs, mullan
This commit is contained in:
parent
197b669f83
commit
5d1cc7fc01
9 changed files with 39 additions and 39 deletions
|
@ -3067,7 +3067,7 @@ public final class Files {
|
|||
* it to a file:
|
||||
* <pre>
|
||||
* Path path = ...
|
||||
* URI u = URI.create("http://java.sun.com/");
|
||||
* URI u = URI.create("http://www.example.com/");
|
||||
* try (InputStream in = u.toURL().openStream()) {
|
||||
* Files.copy(in, path);
|
||||
* }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue