From: bdemsky Date: Thu, 13 Sep 2007 09:21:16 +0000 (+0000) Subject: remove hashfunction/equals methods X-Git-Tag: preEdgeChange~445 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aba86d2ffefda0672651a7e13b8c5fd6c30a042f;p=IRC.git remove hashfunction/equals methods --- diff --git a/Robust/src/Analysis/TaskStateAnalysis/EGEdge.java b/Robust/src/Analysis/TaskStateAnalysis/EGEdge.java index b4f7d004..0fe1cd83 100644 --- a/Robust/src/Analysis/TaskStateAnalysis/EGEdge.java +++ b/Robust/src/Analysis/TaskStateAnalysis/EGEdge.java @@ -8,29 +8,11 @@ import Util.Edge; public class EGEdge extends Edge{ - EGTaskNode target; - - public EGEdge(EGTaskNode target){ super(target); - this.target = target; } public EGTaskNode getTarget(){ - return target; - } - - public int hashCode(){ - return target.hashCode(); + return (EGTaskNode) target; } - - public boolean equals(Object o) { - if (o instanceof EGEdge) { - EGEdge e=(EGEdge)o; - return e.target.equals(target); - } - return false; - } - - }