aboutsummaryrefslogtreecommitdiff
path: root/libjava/gnu/classpath/jdwp/VMMethod.java
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2007-04-28 01:02:10 +0000
committerKeith Seitz <kseitz@gcc.gnu.org>2007-04-28 01:02:10 +0000
commite91ada38adfe05db8334483df3306eef91463a88 (patch)
treebddf0f058c343970e23c7d7087ed3c04a58c722b /libjava/gnu/classpath/jdwp/VMMethod.java
parenteb996a4ac9d4abe017e094872f638ecee872c2cb (diff)
downloadgcc-e91ada38adfe05db8334483df3306eef91463a88.zip
gcc-e91ada38adfe05db8334483df3306eef91463a88.tar.gz
gcc-e91ada38adfe05db8334483df3306eef91463a88.tar.bz2
LocationOnlyFilter.class: Regenerated;
* classpath/lib/gnu/classpath/jdwp/event/filters/ LocationOnlyFilter.class: Regenerated; * classpath/lib/gnu/classpath/jdwp/util/Location.class: Regenerated. * gnu/classpath/jdwp/VMMethod.java * classpath/lib/gnu/classpath/jdwp/VMMethod.class: Regenerated. * gnu/classpath/jdwp/VMMethod.h: Regenerated. * gnu/classpath/jdwp/util/Location.h: Regenerated. * gnu/classpath/jdwp/event/filters/LocationOnlyFilter.java (matches): Use Location.equals to determine equality. * gnu/classpath/jdwp/VMMethod.java (equals): New method. * gnu/classpath/jdwp/util/Location.java (equals): New method. From-SVN: r124249
Diffstat (limited to 'libjava/gnu/classpath/jdwp/VMMethod.java')
-rw-r--r--libjava/gnu/classpath/jdwp/VMMethod.java13
1 files changed, 12 insertions, 1 deletions
diff --git a/libjava/gnu/classpath/jdwp/VMMethod.java b/libjava/gnu/classpath/jdwp/VMMethod.java
index d345bc1..6a2b04e 100644
--- a/libjava/gnu/classpath/jdwp/VMMethod.java
+++ b/libjava/gnu/classpath/jdwp/VMMethod.java
@@ -1,5 +1,5 @@
/* VMMethod.java -- a method in a virtual machine
- Copyright (C) 2006 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2007 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -175,4 +175,15 @@ public class VMMethod
{
return VMVirtualMachine.getClassMethod(klass, bb.getLong());
}
+
+ public boolean equals(Object obj)
+ {
+ if (obj instanceof VMMethod)
+ {
+ VMMethod m = (VMMethod) obj;
+ return (getId() == m.getId());
+ }
+
+ return false;
+ }
}