break if method found

This commit is contained in:
Volker Berlin 2018-12-12 21:28:16 +01:00
parent 461d62a321
commit 02b94bb768

View File

@ -217,6 +217,7 @@ public class WasmRule extends TemporaryFolder {
try {
Class<?> clazz = classes[i];
method = clazz.getDeclaredMethod( methodName, types );
break;
} catch( NoSuchMethodException ex ) {
if( i == classes.length - 1 ) {
throw ex;