1 package gov.nasa.jpf.jvm; 20 21 29 public abstract class FieldLockInfo implements Cloneable { 30 static protected FieldLockInfo empty = new EmptyFieldLockInfo(); 31 32 public abstract FieldLockInfo checkProtection (ElementInfo ei, FieldInfo fi, ThreadInfo ti); 33 public abstract boolean isProtected (); 34 35 39 public Object clone () throws CloneNotSupportedException { 40 return super.clone(); 41 } 42 } 43 44 47 class EmptyFieldLockInfo extends FieldLockInfo { 48 public FieldLockInfo checkProtection (ElementInfo ei, FieldInfo fi, ThreadInfo ti) { 49 return this; 50 } 51 52 public boolean isProtected () { 53 return false; 54 } 55 } 56 57 | Popular Tags |