Update Lock.java