mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -66,8 +66,7 @@ import java.util.Collections;
|
|||
* @see java.nio.channels.DatagramChannel
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class DatagramSocket implements java.io.Closeable {
|
||||
public class DatagramSocket implements java.io.Closeable {
|
||||
/**
|
||||
* Various states of this socket.
|
||||
*/
|
||||
|
|
|
@ -34,8 +34,7 @@ package java.net;
|
|||
* @see java.net.DatagramSocket
|
||||
* @since 1.3
|
||||
*/
|
||||
public
|
||||
interface DatagramSocketImplFactory {
|
||||
public interface DatagramSocketImplFactory {
|
||||
/**
|
||||
* Creates a new {@code DatagramSocketImpl} instance.
|
||||
*
|
||||
|
|
|
@ -35,8 +35,7 @@ import java.io.IOException;
|
|||
* @author Michael McMahon
|
||||
* @since 1.5
|
||||
*/
|
||||
public
|
||||
class HttpRetryException extends IOException {
|
||||
public class HttpRetryException extends IOException {
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = -9186022286469111381L;
|
||||
|
||||
|
|
|
@ -196,8 +196,7 @@ import sun.net.util.IPAddressUtil;
|
|||
* @see java.net.InetAddress#getLocalHost()
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class InetAddress implements java.io.Serializable {
|
||||
public class InetAddress implements java.io.Serializable {
|
||||
|
||||
@Native static final int PREFER_IPV4_VALUE = 0;
|
||||
@Native static final int PREFER_IPV6_VALUE = 1;
|
||||
|
|
|
@ -83,8 +83,7 @@ import java.net.PortUnreachableException;
|
|||
* @author Pavani Diwanji
|
||||
* @since 1.1
|
||||
*/
|
||||
public
|
||||
class MulticastSocket extends DatagramSocket {
|
||||
public class MulticastSocket extends DatagramSocket {
|
||||
|
||||
/**
|
||||
* Used on some platforms to record if an outgoing interface
|
||||
|
|
|
@ -34,8 +34,7 @@ import java.io.IOException;
|
|||
* @author Chris Warth
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class ProtocolException extends IOException {
|
||||
public class ProtocolException extends IOException {
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = -6098449442062388080L;
|
||||
|
||||
|
|
|
@ -52,8 +52,7 @@ import sun.net.PlatformSocketImpl;
|
|||
* @see java.nio.channels.ServerSocketChannel
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class ServerSocket implements java.io.Closeable {
|
||||
public class ServerSocket implements java.io.Closeable {
|
||||
/**
|
||||
* Various states of this socket.
|
||||
*/
|
||||
|
|
|
@ -56,8 +56,7 @@ import java.util.Collections;
|
|||
* @see java.nio.channels.SocketChannel
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class Socket implements java.io.Closeable {
|
||||
public class Socket implements java.io.Closeable {
|
||||
/**
|
||||
* Various states of this socket.
|
||||
*/
|
||||
|
|
|
@ -33,8 +33,7 @@ import java.io.IOException;
|
|||
* @author Jonathan Payne
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class SocketException extends IOException {
|
||||
public class SocketException extends IOException {
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = -5935874303556886934L;
|
||||
|
||||
|
|
|
@ -36,8 +36,7 @@ package java.net;
|
|||
* @see java.net.ServerSocket
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
interface SocketImplFactory {
|
||||
public interface SocketImplFactory {
|
||||
/**
|
||||
* Creates a new {@code SocketImpl} instance.
|
||||
*
|
||||
|
|
|
@ -33,8 +33,7 @@ import java.io.IOException;
|
|||
* @author Jonathan Payne
|
||||
* @since 1.0
|
||||
*/
|
||||
public
|
||||
class UnknownHostException extends IOException {
|
||||
public class UnknownHostException extends IOException {
|
||||
@java.io.Serial
|
||||
private static final long serialVersionUID = -4639126076052875403L;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue