/** * Returns true if the given object is an instance of the * SourceFileData class, and it contains the same data as this * class. */ public boolean equals(Object obj) { if (this == obj) return true; if ((obj == null) || !(obj.getClass().equals(this.getClass()))) return false; SourceFileData sourceFileData = (SourceFileData) obj; getBothLocks(sourceFileData); try { return super.equals(obj) && this.name.equals(sourceFileData.name); } finally { lock.unlock(); sourceFileData.lock.unlock(); } }
/** * Returns true if the given object is an instance of the * SourceFileData class, and it contains the same data as this * class. */ public boolean equals(Object obj) { if (this == obj) return true; if ((obj == null) || !(obj.getClass().equals(this.getClass()))) return false; SourceFileData sourceFileData = (SourceFileData) obj; getBothLocks(sourceFileData); try { return super.equals(obj) && this.name.equals(sourceFileData.name); } finally { lock.unlock(); sourceFileData.lock.unlock(); } }
/** * Returns true if the given object is an instance of the * SourceFileData class, and it contains the same data as this * class. */ public boolean equals(Object obj) { if (this == obj) return true; if ((obj == null) || !(obj.getClass().equals(this.getClass()))) return false; SourceFileData sourceFileData = (SourceFileData)obj; getBothLocks(sourceFileData); try { return super.equals(obj) && this.name.equals(sourceFileData.name); } finally { lock.unlock(); sourceFileData.lock.unlock(); } }