OSDN Git Service

* classpath/lib/gnu/classpath/jdwp/event/filters/
[pf3gnuchains/gcc-fork.git] / libjava / classpath / gnu / classpath / jdwp / util / Location.java
index 89e81e5..ff045a5 100644 (file)
@@ -1,5 +1,5 @@
 /* Location.java -- class to read/write JDWP locations
-   Copyright (C) 2005, 2006 Free Software Foundation
+   Copyright (C) 2005, 2006, 2007 Free Software Foundation
 
 This file is part of GNU Classpath.
 
@@ -153,4 +153,16 @@ public class Location
   {
     return method.toString () + "." + index;
   }
+
+  public boolean equals(Object obj)
+  {
+    if (obj instanceof Location)
+      {
+       Location l = (Location) obj;
+       return (getMethod().equals(l.getMethod())
+               && getIndex() == l.getIndex());
+      }
+
+    return false;
+  }
 }