You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ko...@apache.org on 2013/10/09 20:41:59 UTC
[2/2] git commit: updated refs/heads/master to d1dd85a
ReflectUtil: findMethod removed
findMethod was not used, it is removed
Signed-off-by: Laszlo Hornyak <la...@gmail.com>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/66fe3abe
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/66fe3abe
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/66fe3abe
Branch: refs/heads/master
Commit: 66fe3abe3b73766df03771cb68640424ee2099c8
Parents: 0d7aa93
Author: Laszlo Hornyak <la...@gmail.com>
Authored: Tue Oct 8 20:06:44 2013 +0200
Committer: Laszlo Hornyak <la...@gmail.com>
Committed: Wed Oct 9 20:39:41 2013 +0200
----------------------------------------------------------------------
utils/src/com/cloud/utils/ReflectUtil.java | 14 --------------
1 file changed, 14 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/66fe3abe/utils/src/com/cloud/utils/ReflectUtil.java
----------------------------------------------------------------------
diff --git a/utils/src/com/cloud/utils/ReflectUtil.java b/utils/src/com/cloud/utils/ReflectUtil.java
index 08a780a..930e0b6 100755
--- a/utils/src/com/cloud/utils/ReflectUtil.java
+++ b/utils/src/com/cloud/utils/ReflectUtil.java
@@ -26,7 +26,6 @@ import java.beans.PropertyDescriptor;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
@@ -58,19 +57,6 @@ public class ReflectUtil {
return null;
}
}
-
- public static Method findMethod(Class<?> clazz, String methodName) {
- do {
- Method[] methods = clazz.getDeclaredMethods();
- for (Method method : methods) {
- if (methodName.equals(method.getName())) {
- return method;
- }
- }
- clazz = clazz.getSuperclass();
- } while (clazz != null);
- return null;
- }
// Gets all classes with some annotation from a package
public static Set<Class<?>> getClassesWithAnnotation(Class<? extends Annotation> annotation,