mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8234335: Remove line break in class declaration in java.base
Remove line break in class declarations where applicable Reviewed-by: rriggs, lancea
This commit is contained in:
parent
e636c69e61
commit
a8a2246158
103 changed files with 416 additions and 460 deletions
|
@ -49,8 +49,7 @@ import jdk.internal.util.ArraysSupport;
|
|||
* @author Arthur van Hoff
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class BufferedInputStream extends FilterInputStream {
|
||||
public class BufferedInputStream extends FilterInputStream {
|
||||
|
||||
private static int DEFAULT_BUFFER_SIZE = 8192;
|
||||
|
||||
|
|
|
@ -39,8 +39,7 @@ import java.util.Arrays;
|
|||
* @author Herb Jellinek
|
||||
* @since 1.1
|
||||
*/
|
||||
public
|
||||
class CharArrayWriter extends Writer {
|
||||
public class CharArrayWriter extends Writer {
|
||||
/**
|
||||
* The buffer where data is stored.
|
||||
*/
|
||||
|
|
|
@ -154,8 +154,7 @@ package java.io;
|
|||
* @see java.io.DataOutput
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
interface DataInput {
|
||||
public interface DataInput {
|
||||
/**
|
||||
* Reads some bytes from an input
|
||||
* stream and stores them into the buffer
|
||||
|
|
|
@ -39,8 +39,7 @@ package java.io;
|
|||
* @see java.io.DataOutputStream
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class DataInputStream extends FilterInputStream implements DataInput {
|
||||
public class DataInputStream extends FilterInputStream implements DataInput {
|
||||
|
||||
/**
|
||||
* Creates a DataInputStream that uses the specified
|
||||
|
|
|
@ -46,8 +46,7 @@ package java.io;
|
|||
* @see java.io.DataOutputStream
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
interface DataOutput {
|
||||
public interface DataOutput {
|
||||
/**
|
||||
* Writes to the output stream the eight
|
||||
* low-order bits of the argument {@code b}.
|
||||
|
|
|
@ -34,8 +34,7 @@ package java.io;
|
|||
* @see java.io.DataInputStream
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class DataOutputStream extends FilterOutputStream implements DataOutput {
|
||||
public class DataOutputStream extends FilterOutputStream implements DataOutput {
|
||||
/**
|
||||
* The number of bytes written to the data output stream so far.
|
||||
* If this counter overflows, it will be wrapped to Integer.MAX_VALUE.
|
||||
|
|
|
@ -38,8 +38,7 @@ package java.io;
|
|||
* @see java.io.IOException
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class EOFException extends IOException {
|
||||
public class EOFException extends IOException {
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = 6433858223774886977L;
|
||||
|
||||
|
|
|
@ -61,8 +61,7 @@ import sun.nio.ch.FileChannelImpl;
|
|||
* @see java.nio.file.Files#newInputStream
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class FileInputStream extends InputStream
|
||||
public class FileInputStream extends InputStream
|
||||
{
|
||||
/* File Descriptor - handle to the open file */
|
||||
private final FileDescriptor fd;
|
||||
|
|
|
@ -66,8 +66,7 @@ import sun.nio.ch.FileChannelImpl;
|
|||
* @see java.nio.file.Files#newOutputStream
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class FileOutputStream extends OutputStream
|
||||
public class FileOutputStream extends OutputStream
|
||||
{
|
||||
/**
|
||||
* Access to FileDescriptor internals.
|
||||
|
|
|
@ -42,8 +42,7 @@ package java.io;
|
|||
* @author Jonathan Payne
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class FilterInputStream extends InputStream {
|
||||
public class FilterInputStream extends InputStream {
|
||||
/**
|
||||
* The input stream to be filtered.
|
||||
*/
|
||||
|
|
|
@ -35,8 +35,7 @@ package java.io;
|
|||
* @see java.io.OutputStream
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class IOException extends Exception {
|
||||
public class IOException extends Exception {
|
||||
@java.io.Serial
|
||||
static final long serialVersionUID = 7818375828146090155L;
|
||||
|
||||
|
|
|
@ -39,8 +39,7 @@ package java.io;
|
|||
* @see java.lang.Thread#interrupt()
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class InterruptedIOException extends IOException {
|
||||
public class InterruptedIOException extends IOException {
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = 4020568460727500567L;
|
||||
|
||||
|
|
|
@ -47,8 +47,7 @@ package java.io;
|
|||
* include a class for counting line numbers.
|
||||
*/
|
||||
@Deprecated
|
||||
public
|
||||
class LineNumberInputStream extends FilterInputStream {
|
||||
public class LineNumberInputStream extends FilterInputStream {
|
||||
int pushBack = -1;
|
||||
int lineNumber;
|
||||
int markLineNumber;
|
||||
|
|
|
@ -43,8 +43,7 @@ import java.io.*;
|
|||
* @see java.io.PipedInputStream
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class PipedOutputStream extends OutputStream {
|
||||
public class PipedOutputStream extends OutputStream {
|
||||
|
||||
/* REMIND: identification of the read and write sides needs to be
|
||||
more sophisticated. Either using thread groups (but what about
|
||||
|
|
|
@ -49,8 +49,7 @@ package java.io;
|
|||
* @author Jonathan Payne
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class PushbackInputStream extends FilterInputStream {
|
||||
public class PushbackInputStream extends FilterInputStream {
|
||||
/**
|
||||
* The pushback buffer.
|
||||
* @since 1.1
|
||||
|
|
|
@ -42,8 +42,7 @@ import java.util.Vector;
|
|||
* @author Author van Hoff
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class SequenceInputStream extends InputStream {
|
||||
public class SequenceInputStream extends InputStream {
|
||||
Enumeration<? extends InputStream> e;
|
||||
InputStream in;
|
||||
|
||||
|
|
|
@ -43,8 +43,7 @@ package java.io;
|
|||
* string is via the {@code StringReader} class.
|
||||
*/
|
||||
@Deprecated
|
||||
public
|
||||
class StringBufferInputStream extends InputStream {
|
||||
public class StringBufferInputStream extends InputStream {
|
||||
/**
|
||||
* The string from which bytes are read.
|
||||
*/
|
||||
|
|
|
@ -42,8 +42,7 @@ package java.io;
|
|||
* @see java.io.IOException
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class UTFDataFormatException extends IOException {
|
||||
public class UTFDataFormatException extends IOException {
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = 420743449228280612L;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue