equal
deleted
inserted
replaced
24 */ |
24 */ |
25 |
25 |
26 package java.lang; |
26 package java.lang; |
27 |
27 |
28 /** |
28 /** |
29 * Thrown to indicate that the <code>clone</code> method in class |
29 * Thrown to indicate that the {@code clone} method in class |
30 * <code>Object</code> has been called to clone an object, but that |
30 * {@code Object} has been called to clone an object, but that |
31 * the object's class does not implement the <code>Cloneable</code> |
31 * the object's class does not implement the {@code Cloneable} |
32 * interface. |
32 * interface. |
33 * <p> |
33 * <p> |
34 * Applications that override the <code>clone</code> method can also |
34 * Applications that override the {@code clone} method can also |
35 * throw this exception to indicate that an object could not or |
35 * throw this exception to indicate that an object could not or |
36 * should not be cloned. |
36 * should not be cloned. |
37 * |
37 * |
38 * @author unascribed |
38 * @author unascribed |
39 * @see java.lang.Cloneable |
39 * @see java.lang.Cloneable |
45 class CloneNotSupportedException extends Exception { |
45 class CloneNotSupportedException extends Exception { |
46 @java.io.Serial |
46 @java.io.Serial |
47 private static final long serialVersionUID = 5195511250079656443L; |
47 private static final long serialVersionUID = 5195511250079656443L; |
48 |
48 |
49 /** |
49 /** |
50 * Constructs a <code>CloneNotSupportedException</code> with no |
50 * Constructs a {@code CloneNotSupportedException} with no |
51 * detail message. |
51 * detail message. |
52 */ |
52 */ |
53 public CloneNotSupportedException() { |
53 public CloneNotSupportedException() { |
54 super(); |
54 super(); |
55 } |
55 } |
56 |
56 |
57 /** |
57 /** |
58 * Constructs a <code>CloneNotSupportedException</code> with the |
58 * Constructs a {@code CloneNotSupportedException} with the |
59 * specified detail message. |
59 * specified detail message. |
60 * |
60 * |
61 * @param s the detail message. |
61 * @param s the detail message. |
62 */ |
62 */ |
63 public CloneNotSupportedException(String s) { |
63 public CloneNotSupportedException(String s) { |