Revision: 3280
http://jnode.svn.sourceforge.net/jnode/?rev=3280&view=rev
Author: lsantha
Date: 2007-06-17 13:37:45 -0700 (Sun, 17 Jun 2007)
Log Message:
-----------
Feformatted.
Modified Paths:
--------------
trunk/core/src/core/org/jnode/vm/classmgr/VmType.java
Modified: trunk/core/src/core/org/jnode/vm/classmgr/VmType.java
===================================================================
--- trunk/core/src/core/org/jnode/vm/classmgr/VmType.java 2007-06-17 20:36:33 UTC (rev 3279)
+++ trunk/core/src/core/org/jnode/vm/classmgr/VmType.java 2007-06-17 20:37:45 UTC (rev 3280)
@@ -1363,25 +1363,25 @@
*/
protected abstract VmMethod getSyntheticAbstractMethod(String name,
String signature, int hashCode);
-
+
final VmMethod getNativeMethodReplacement(String name, String signature) {
- signature = signature.substring(0, signature.indexOf(')'));
- /* Search only in my own method table */
- final VmMethod[] mt = this.methodTable;
- if (mt != null) {
- final int count = mt.length;
- for (int i = 0; i < count; i++) {
- final VmMethod mts = mt[i];
- if (mts.nameEquals(name)) {
- String sig2 = mts.getSignature();
- if (signature.equals(sig2.substring(0, sig2.indexOf(')')))) {
- return mts;
- }
+ signature = signature.substring(0, signature.indexOf(')'));
+ /* Search only in my own method table */
+ final VmMethod[] mt = this.methodTable;
+ if (mt != null) {
+ final int count = mt.length;
+ for (int i = 0; i < count; i++) {
+ final VmMethod mts = mt[i];
+ if (mts.nameEquals(name)) {
+ String sig2 = mts.getSignature();
+ if (signature.equals(sig2.substring(0, sig2.indexOf(')')))) {
+ return mts;
}
}
}
- return null;
}
+ return null;
+ }
/**
* Find the method within the given class (or super-classes) that has the
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|