mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8241760: Typos: empty lines in javadoc, inconsistent indents, etc. (net and nio)
Reviewed-by: alanb, prappo, dfuchs
This commit is contained in:
parent
916f00acc1
commit
53b2368d49
25 changed files with 107 additions and 99 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -28,20 +28,22 @@ package sun.nio;
|
|||
import java.nio.ByteBuffer;
|
||||
import java.io.IOException;
|
||||
|
||||
/** This is an interface to adapt existing APIs to use {@link java.nio.ByteBuffer
|
||||
* ByteBuffers} as the underlying
|
||||
* data format. Only the initial producer and final consumer have to be changed.<p>
|
||||
/**
|
||||
* This is an interface to adapt existing APIs to use {@link java.nio.ByteBuffer
|
||||
* ByteBuffers} as the underlying data format. Only the initial producer and
|
||||
* final consumer have to be changed.
|
||||
*
|
||||
* For example, the Zip/Jar code supports {@link java.io.InputStream InputStreams}.
|
||||
* To make the Zip code use {@link java.nio.MappedByteBuffer MappedByteBuffers} as
|
||||
* the underlying data structure, it can create a class of InputStream that wraps the ByteBuffer,
|
||||
* and implements the ByteBuffered interface. A co-operating class several layers
|
||||
* away can ask the InputStream if it is an instance of ByteBuffered, then
|
||||
* call the {@link #getByteBuffer()} method.
|
||||
* <p>
|
||||
* For example, the Zip/Jar code supports {@link java.io.InputStream InputStreams}.
|
||||
* To make the Zip code use {@link java.nio.MappedByteBuffer MappedByteBuffers} as
|
||||
* the underlying data structure, it can create a class of InputStream that wraps
|
||||
* the ByteBuffer, and implements the ByteBuffered interface. A co-operating class
|
||||
* several layers away can ask the InputStream if it is an instance of ByteBuffered,
|
||||
* then call the {@link #getByteBuffer()} method.
|
||||
*/
|
||||
public interface ByteBuffered {
|
||||
|
||||
/**
|
||||
/**
|
||||
* Returns the {@code ByteBuffer} behind this object, if this particular
|
||||
* instance has one. An implementation of {@code getByteBuffer()} is allowed
|
||||
* to return {@code null} for any reason.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -32,10 +32,12 @@ import jdk.internal.ref.CleanerFactory;
|
|||
/**
|
||||
* Manipulates a native array of iovec structs on Solaris:
|
||||
*
|
||||
* <pre> {@code
|
||||
* typedef struct iovec {
|
||||
* caddr_t iov_base;
|
||||
int iov_len;
|
||||
* caddr_t iov_base;
|
||||
* int iov_len;
|
||||
* } iovec_t;
|
||||
* }</pre>
|
||||
*
|
||||
* @author Mike McCloskey
|
||||
* @since 1.4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue