src/java.base/share/classes/java/security/GuardedObject.java
changeset 58519 6e017b301287
parent 58242 94bb65cb37d3
child 58679 9c3209ff7550
equal deleted inserted replaced
58518:705c3f88a409 58519:6e017b301287
    50 public class GuardedObject implements java.io.Serializable {
    50 public class GuardedObject implements java.io.Serializable {
    51 
    51 
    52     @java.io.Serial
    52     @java.io.Serial
    53     private static final long serialVersionUID = -5240450096227834308L;
    53     private static final long serialVersionUID = -5240450096227834308L;
    54 
    54 
       
    55     @SuppressWarnings("serial") // Not statically typed as Serializable
    55     private Object object; // the object we are guarding
    56     private Object object; // the object we are guarding
       
    57     @SuppressWarnings("serial") // Not statically typed as Serializable
    56     private Guard guard;   // the guard
    58     private Guard guard;   // the guard
    57 
    59 
    58     /**
    60     /**
    59      * Constructs a GuardedObject using the specified object and guard.
    61      * Constructs a GuardedObject using the specified object and guard.
    60      * If the Guard object is null, then no restrictions will
    62      * If the Guard object is null, then no restrictions will