mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +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
|
@ -33,8 +33,7 @@ package java.util;
|
|||
* @see java.util.Stack
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class EmptyStackException extends RuntimeException {
|
||||
public class EmptyStackException extends RuntimeException {
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = 5084686378493302095L;
|
||||
|
||||
|
|
|
@ -34,8 +34,7 @@ package java.util;
|
|||
* @see java.util.Scanner
|
||||
* @since 1.5
|
||||
*/
|
||||
public
|
||||
class InputMismatchException extends NoSuchElementException {
|
||||
public class InputMismatchException extends NoSuchElementException {
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = 8811230760997066428L;
|
||||
|
||||
|
|
|
@ -47,8 +47,7 @@ package java.util;
|
|||
* @author Mark Davis
|
||||
* @since 1.1
|
||||
*/
|
||||
public
|
||||
class MissingResourceException extends RuntimeException {
|
||||
public class MissingResourceException extends RuntimeException {
|
||||
|
||||
/**
|
||||
* Constructs a MissingResourceException with the specified information.
|
||||
|
|
|
@ -34,8 +34,7 @@ package java.util;
|
|||
* @see java.util.Iterator#next()
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class NoSuchElementException extends RuntimeException {
|
||||
public class NoSuchElementException extends RuntimeException {
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = 6769829250639411880L;
|
||||
|
||||
|
|
|
@ -137,8 +137,7 @@ import jdk.internal.util.xml.PropertiesDefaultHandler;
|
|||
* @author Xueming Shen
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class Properties extends Hashtable<Object,Object> {
|
||||
public class Properties extends Hashtable<Object,Object> {
|
||||
/**
|
||||
* use serialVersionUID from JDK 1.1.X for interoperability
|
||||
*/
|
||||
|
|
|
@ -73,8 +73,7 @@ import jdk.internal.misc.Unsafe;
|
|||
* @author Frank Yellin
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class Random implements java.io.Serializable {
|
||||
public class Random implements java.io.Serializable {
|
||||
/** use serialVersionUID from JDK 1.1 for interoperability */
|
||||
@java.io.Serial
|
||||
static final long serialVersionUID = 3905348978240129619L;
|
||||
|
|
|
@ -45,8 +45,7 @@ package java.util;
|
|||
* @author Jonathan Payne
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class Stack<E> extends Vector<E> {
|
||||
public class Stack<E> extends Vector<E> {
|
||||
/**
|
||||
* Creates an empty Stack.
|
||||
*/
|
||||
|
|
|
@ -99,8 +99,7 @@ import java.lang.*;
|
|||
* @see java.io.StreamTokenizer
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class StringTokenizer implements Enumeration<Object> {
|
||||
public class StringTokenizer implements Enumeration<Object> {
|
||||
private int currentPosition;
|
||||
private int newPosition;
|
||||
private int maxPosition;
|
||||
|
|
|
@ -35,8 +35,7 @@ import java.security.cert.Certificate;
|
|||
*
|
||||
* @since 1.2
|
||||
*/
|
||||
public
|
||||
class JarEntry extends ZipEntry {
|
||||
public class JarEntry extends ZipEntry {
|
||||
Attributes attr;
|
||||
Certificate[] certs;
|
||||
CodeSigner[] signers;
|
||||
|
|
|
@ -32,8 +32,7 @@ package java.util.jar;
|
|||
* @author David Connelly
|
||||
* @since 1.2
|
||||
*/
|
||||
public
|
||||
class JarException extends java.util.zip.ZipException {
|
||||
public class JarException extends java.util.zip.ZipException {
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = 7159778400963954473L;
|
||||
|
||||
|
|
|
@ -145,8 +145,7 @@ import java.util.zip.ZipFile;
|
|||
* @see java.util.jar.JarEntry
|
||||
* @since 1.2
|
||||
*/
|
||||
public
|
||||
class JarFile extends ZipFile {
|
||||
public class JarFile extends ZipFile {
|
||||
private final static Runtime.Version BASE_VERSION;
|
||||
private final static int BASE_VERSION_FEATURE;
|
||||
private final static Runtime.Version RUNTIME_VERSION;
|
||||
|
|
|
@ -42,8 +42,7 @@ import jdk.internal.util.jar.JarIndex;
|
|||
* @see java.util.zip.ZipInputStream
|
||||
* @since 1.2
|
||||
*/
|
||||
public
|
||||
class JarInputStream extends ZipInputStream {
|
||||
public class JarInputStream extends ZipInputStream {
|
||||
private Manifest man;
|
||||
private JarEntry first;
|
||||
private JarVerifier jv;
|
||||
|
|
|
@ -41,8 +41,7 @@ import java.io.*;
|
|||
* @see java.util.zip.ZipOutputStream
|
||||
* @since 1.2
|
||||
*/
|
||||
public
|
||||
class JarOutputStream extends ZipOutputStream {
|
||||
public class JarOutputStream extends ZipOutputStream {
|
||||
private static final int JAR_MAGIC = 0xCAFE;
|
||||
|
||||
/**
|
||||
|
|
|
@ -41,8 +41,7 @@ import jdk.internal.HotSpotIntrinsicCandidate;
|
|||
* @author David Connelly
|
||||
* @since 1.1
|
||||
*/
|
||||
public
|
||||
class Adler32 implements Checksum {
|
||||
public class Adler32 implements Checksum {
|
||||
|
||||
private int adler = 1;
|
||||
|
||||
|
|
|
@ -40,8 +40,7 @@ import jdk.internal.HotSpotIntrinsicCandidate;
|
|||
* @author David Connelly
|
||||
* @since 1.1
|
||||
*/
|
||||
public
|
||||
class CRC32 implements Checksum {
|
||||
public class CRC32 implements Checksum {
|
||||
private int crc;
|
||||
|
||||
/**
|
||||
|
|
|
@ -37,8 +37,7 @@ import java.io.IOException;
|
|||
* @author David Connelly
|
||||
* @since 1.1
|
||||
*/
|
||||
public
|
||||
class CheckedInputStream extends FilterInputStream {
|
||||
public class CheckedInputStream extends FilterInputStream {
|
||||
private Checksum cksum;
|
||||
|
||||
/**
|
||||
|
|
|
@ -38,8 +38,7 @@ import java.io.IOException;
|
|||
* @author David Connelly
|
||||
* @since 1.1
|
||||
*/
|
||||
public
|
||||
class CheckedOutputStream extends FilterOutputStream {
|
||||
public class CheckedOutputStream extends FilterOutputStream {
|
||||
private Checksum cksum;
|
||||
|
||||
/**
|
||||
|
|
|
@ -31,8 +31,7 @@ package java.util.zip;
|
|||
* @author David Connelly
|
||||
* @since 1.1
|
||||
*/
|
||||
public
|
||||
class DataFormatException extends Exception {
|
||||
public class DataFormatException extends Exception {
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = 2219632870893641452L;
|
||||
|
||||
|
|
|
@ -39,8 +39,7 @@ import java.io.IOException;
|
|||
* @author David Connelly
|
||||
* @since 1.1
|
||||
*/
|
||||
public
|
||||
class DeflaterOutputStream extends FilterOutputStream {
|
||||
public class DeflaterOutputStream extends FilterOutputStream {
|
||||
/**
|
||||
* Compressor for this stream.
|
||||
*/
|
||||
|
|
|
@ -41,8 +41,7 @@ import java.io.EOFException;
|
|||
* @since 1.1
|
||||
*
|
||||
*/
|
||||
public
|
||||
class GZIPInputStream extends InflaterInputStream {
|
||||
public class GZIPInputStream extends InflaterInputStream {
|
||||
/**
|
||||
* CRC-32 for uncompressed data.
|
||||
*/
|
||||
|
|
|
@ -35,8 +35,7 @@ import java.io.IOException;
|
|||
* @since 1.1
|
||||
*
|
||||
*/
|
||||
public
|
||||
class GZIPOutputStream extends DeflaterOutputStream {
|
||||
public class GZIPOutputStream extends DeflaterOutputStream {
|
||||
/**
|
||||
* CRC-32 of uncompressed data.
|
||||
*/
|
||||
|
|
|
@ -39,8 +39,7 @@ import java.io.EOFException;
|
|||
* @author David Connelly
|
||||
* @since 1.1
|
||||
*/
|
||||
public
|
||||
class InflaterInputStream extends FilterInputStream {
|
||||
public class InflaterInputStream extends FilterInputStream {
|
||||
/**
|
||||
* Decompressor for this stream.
|
||||
*/
|
||||
|
|
|
@ -41,8 +41,7 @@ import static java.util.zip.ZipConstants64.*;
|
|||
* @author David Connelly
|
||||
* @since 1.1
|
||||
*/
|
||||
public
|
||||
class ZipEntry implements ZipConstants, Cloneable {
|
||||
public class ZipEntry implements ZipConstants, Cloneable {
|
||||
|
||||
String name; // entry name
|
||||
long xdostime = -1; // last modification time (in extended DOS time,
|
||||
|
|
|
@ -35,8 +35,7 @@ import java.io.IOException;
|
|||
* @since 1.1
|
||||
*/
|
||||
|
||||
public
|
||||
class ZipException extends IOException {
|
||||
public class ZipException extends IOException {
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = 8000196834066748623L;
|
||||
|
||||
|
|
|
@ -87,8 +87,7 @@ import static java.util.zip.ZipUtils.*;
|
|||
* @author David Connelly
|
||||
* @since 1.1
|
||||
*/
|
||||
public
|
||||
class ZipFile implements ZipConstants, Closeable {
|
||||
public class ZipFile implements ZipConstants, Closeable {
|
||||
|
||||
private final String name; // zip file name
|
||||
private volatile boolean closeRequested;
|
||||
|
|
|
@ -42,8 +42,7 @@ import static java.util.zip.ZipUtils.*;
|
|||
* @author David Connelly
|
||||
* @since 1.1
|
||||
*/
|
||||
public
|
||||
class ZipInputStream extends InflaterInputStream implements ZipConstants {
|
||||
public class ZipInputStream extends InflaterInputStream implements ZipConstants {
|
||||
private ZipEntry entry;
|
||||
private int flag;
|
||||
private CRC32 crc = new CRC32();
|
||||
|
|
|
@ -43,8 +43,7 @@ import sun.security.action.GetPropertyAction;
|
|||
* @author David Connelly
|
||||
* @since 1.1
|
||||
*/
|
||||
public
|
||||
class ZipOutputStream extends DeflaterOutputStream implements ZipConstants {
|
||||
public class ZipOutputStream extends DeflaterOutputStream implements ZipConstants {
|
||||
|
||||
/**
|
||||
* Whether to use ZIP64 for zip files with more than 64k entries.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue