test/jdk/java/io/Serializable/failureAtomicity/SerialRef.java
changeset 58565 baa5969ecf34
parent 47216 71c04702a3d5
equal deleted inserted replaced
58564:218a1a642c6f 58565:baa5969ecf34
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 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.
     7  * published by the Free Software Foundation.
    28 import java.io.Serializable;
    28 import java.io.Serializable;
    29 
    29 
    30 // For verification purposes only.
    30 // For verification purposes only.
    31 
    31 
    32 public class SerialRef implements Serializable {
    32 public class SerialRef implements Serializable {
    33     static final long serialVersionUID = -0L;
    33     private static final long serialVersionUID = -0L;
    34     public static Object obj;
    34     public static Object obj;
    35 
    35 
       
    36     @SuppressWarnings("serial") /* Incorrect declarations are being tested */
    36     private final Object ref;
    37     private final Object ref;
    37 
    38 
    38     public SerialRef(Object ref) {
    39     public SerialRef(Object ref) {
    39         this.ref = ref;
    40         this.ref = ref;
    40     }
    41     }