mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8320781: Fix whitespace in j.l.Double and j.u.z.ZipInputStream @snippets
Reviewed-by: lancea, bpb, darcy, jpai
This commit is contained in:
parent
a5ccd3beaf
commit
99f870c43f
2 changed files with 5 additions and 5 deletions
|
@ -51,12 +51,12 @@ import static java.util.zip.ZipUtils.*;
|
|||
* {@code ZipInputStream} read methods such
|
||||
* as {@link #read(byte[], int, int) read} or {@link #readAllBytes() readAllBytes()}.
|
||||
* For example:
|
||||
* {@snippet :
|
||||
* {@snippet lang="java" :
|
||||
* Path jar = Path.of("foo.jar");
|
||||
* try (InputStream is = Files.newInputStream(jar);
|
||||
* ZipInputStream zis = new ZipInputStream(is)) {
|
||||
* ZipEntry ze;
|
||||
* while((ze= zis.getNextEntry()) != null) {
|
||||
* while ((ze = zis.getNextEntry()) != null) {
|
||||
* var bytes = zis.readAllBytes();
|
||||
* System.out.printf("Entry: %s, bytes read: %s%n", ze.getName(),
|
||||
* bytes.length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue