src/java.base/share/classes/java/lang/NegativeArraySizeException.java
branchdatagramsocketimpl-branch
changeset 58678 9cf78a70fa4f
parent 47216 71c04702a3d5
child 58679 9c3209ff7550
equal deleted inserted replaced
58677:13588c901957 58678:9cf78a70fa4f
     1 /*
     1 /*
     2  * Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    31  * @author  unascribed
    31  * @author  unascribed
    32  * @since   1.0
    32  * @since   1.0
    33  */
    33  */
    34 public
    34 public
    35 class NegativeArraySizeException extends RuntimeException {
    35 class NegativeArraySizeException extends RuntimeException {
       
    36     @java.io.Serial
    36     private static final long serialVersionUID = -8960118058596991861L;
    37     private static final long serialVersionUID = -8960118058596991861L;
    37 
    38 
    38     /**
    39     /**
    39      * Constructs a <code>NegativeArraySizeException</code> with no
    40      * Constructs a {@code NegativeArraySizeException} with no
    40      * detail message.
    41      * detail message.
    41      */
    42      */
    42     public NegativeArraySizeException() {
    43     public NegativeArraySizeException() {
    43         super();
    44         super();
    44     }
    45     }
    45 
    46 
    46     /**
    47     /**
    47      * Constructs a <code>NegativeArraySizeException</code> with the
    48      * Constructs a {@code NegativeArraySizeException} with the
    48      * specified detail message.
    49      * specified detail message.
    49      *
    50      *
    50      * @param   s   the detail message.
    51      * @param   s   the detail message.
    51      */
    52      */
    52     public NegativeArraySizeException(String s) {
    53     public NegativeArraySizeException(String s) {