Statement.java (doExecute): Fix formatting.
2004-06-30 Jerry Quinn <jlquinn@optonline.net> * java/beans/Statement.java (doExecute): Fix formatting. From-SVN: r83938
This commit is contained in:
parent
dd66b8e81e
commit
dcfbe7c7d9
2 changed files with 14 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2004-06-30 Jerry Quinn <jlquinn@optonline.net>
|
||||||
|
|
||||||
|
* java/beans/Statement.java (doExecute): Fix formatting.
|
||||||
|
|
||||||
2004-06-29 Per Bothner <per@bothner.com>
|
2004-06-29 Per Bothner <per@bothner.com>
|
||||||
|
|
||||||
* jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
|
* jni.cc (_Jv_JNI_NewGlobalRef, JNICALL _Jv_JNI_DeleteGlobalRef,
|
||||||
|
|
|
@ -243,10 +243,12 @@ public class Statement
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (ptypes.length != args.length) continue;
|
if (ptypes.length != args.length)
|
||||||
|
continue;
|
||||||
|
|
||||||
// Check if method matches
|
// Check if method matches
|
||||||
if (!compatible(ptypes, argTypes)) continue;
|
if (!compatible(ptypes, argTypes))
|
||||||
|
continue;
|
||||||
|
|
||||||
// Use method[i] if it is more specific.
|
// Use method[i] if it is more specific.
|
||||||
// FIXME: should this check both directions and throw if
|
// FIXME: should this check both directions and throw if
|
||||||
|
@ -270,12 +272,15 @@ public class Statement
|
||||||
for (int i = 0; i < methods.length; i++)
|
for (int i = 0; i < methods.length; i++)
|
||||||
{
|
{
|
||||||
// Skip methods with wrong name or number of args.
|
// Skip methods with wrong name or number of args.
|
||||||
if (!methods[i].getName().equals(methodName)) continue;
|
if (!methods[i].getName().equals(methodName))
|
||||||
|
continue;
|
||||||
Class ptypes[] = methods[i].getParameterTypes();
|
Class ptypes[] = methods[i].getParameterTypes();
|
||||||
if (ptypes.length != args.length) continue;
|
if (ptypes.length != args.length)
|
||||||
|
continue;
|
||||||
|
|
||||||
// Check if method matches
|
// Check if method matches
|
||||||
if (!compatible(ptypes, argTypes)) continue;
|
if (!compatible(ptypes, argTypes))
|
||||||
|
continue;
|
||||||
|
|
||||||
// Use method[i] if it is more specific.
|
// Use method[i] if it is more specific.
|
||||||
// FIXME: should this check both directions and throw if
|
// FIXME: should this check both directions and throw if
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue