for (int i = 0; i < numLocks; i++) locks.add(in.readUTF());
synchronized (locks) { for (int i = 0; i < numLocks; i++) locks.add(in.readUTF()); }
	private static void loadLocks(File locksData) throws IOException {		ObjectInputStream in = null;		try {			in = new ObjectInputStream(new FileInputStream(locksData));			int dataVersion = in.readInt();			if (dataVersion != DATA_VERSION)				return;			int numLocks = in.readInt();			for (int i = 0; i < numLocks; i++)				locks.add(in.readUTF());		} finally {			if (in != null)				in.close();		}	}