diff options
author | Keith Seitz <keiths@redhat.com> | 2007-04-27 21:01:04 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2007-04-27 21:01:04 +0000 |
commit | 09c26268ade017ae4787238e69abae72ad78c080 (patch) | |
tree | 360ede08b361ab9ea0b00ced3f97d12f212e8e54 /vm | |
parent | 9e9c52b9d14bfef034059b61de1f63ad4511ee5a (diff) | |
download | classpath-09c26268ade017ae4787238e69abae72ad78c080.tar.gz |
* gnu/classpath/jdwp/event/filters/LocationOnlyFilter.java
(matches): Use Location.equals to determine equality.
* vm/reference/gnu/classpath/jdwp/VMMethod.java (equals):
New method.
* gnu/classpath/jdwp/util/Location.java (equals):
New method.
Diffstat (limited to 'vm')
-rw-r--r-- | vm/reference/gnu/classpath/jdwp/VMMethod.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/vm/reference/gnu/classpath/jdwp/VMMethod.java b/vm/reference/gnu/classpath/jdwp/VMMethod.java index d345bc1b5..6a2b04ecf 100644 --- a/vm/reference/gnu/classpath/jdwp/VMMethod.java +++ b/vm/reference/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; + } } |