Пример #1
0
 /** Checks the guard (if there is one) before performing a default serialization. */
 @DSGenerator(
     tool_name = "Doppelganger",
     tool_version = "2.0",
     generated_on = "2014-08-13 13:14:14.534 -0400",
     hash_original_method = "348630D7F52CD6FE922772D18E5A4EE3",
     hash_generated_method = "2981E8416B8EEBBC7C8DB8E201224C05")
 private void writeObject(java.io.ObjectOutputStream out) throws IOException {
   if (guard != null) {
     guard.checkGuard(object);
   }
   out.defaultWriteObject();
 }
Пример #2
0
 /**
  * Returns the guarded {@code Object} if the associated {@code Guard} permits access. If access is
  * not granted, then a {@code SecurityException} is thrown.
  *
  * @return the guarded object.
  * @exception SecurityException if access is not granted to the guarded object.
  */
 @DSGenerator(
     tool_name = "Doppelganger",
     tool_version = "2.0",
     generated_on = "2014-08-13 13:14:14.532 -0400",
     hash_original_method = "3EF173A6C6367EC6BC9E6B537A363AF5",
     hash_generated_method = "7C5E9C80A577D6664DDEDA5993E62201")
 public Object getObject() throws SecurityException {
   if (guard != null) {
     guard.checkGuard(object);
   }
   return object;
 }