Fixed IgniteUtils.invoke
@@ -8143,10 +8143,10 @@ public abstract class IgniteUtils {
assert mtdName != null;
try {
- for (Class<?> c = cls != null ? cls : obj.getClass(); cls != Object.class; cls = cls.getSuperclass()) {
+ for (cls = cls != null ? cls : obj.getClass(); cls != Object.class; cls = cls.getSuperclass()) {
Method mtd = null;
- for (Method declaredMtd : c.getDeclaredMethods()) {
+ for (Method declaredMtd : cls.getDeclaredMethods()) {
if (declaredMtd.getName().equals(mtdName)) {
if (mtd == null)
mtd = declaredMtd;
@@ -8202,11 +8202,11 @@ public abstract class IgniteUtils {
assert mtdName != null;
try {
- for (Class<?> c = cls != null ? cls : obj.getClass(); cls != Object.class; cls = cls.getSuperclass()) {
+ for (cls = cls != null ? cls : obj.getClass(); cls != Object.class; cls = cls.getSuperclass()) {
Method mtd;
try {
- mtd = c.getDeclaredMethod(mtdName, paramTypes);
+ mtd = cls.getDeclaredMethod(mtdName, paramTypes);
}
catch (NoSuchMethodException ignored) {
continue;
