equal
deleted
inserted
replaced
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 |