mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-03 05:20:50 +00:00
revert[proxy]: bean should be pojo class
This commit is contained in:
1 parent
06f716feb9
commit
607314a442
7 files changed
+29
-23
No files matched your search
@@ -164,9 +164,9 @@ public abstract class ReflectionUtils {
|
||||
* @param annotation 指定注解的Class
|
||||
* @return 数组,可能长度为0
|
||||
*/
|
||||
public static Method[] getMethodsByAnnotation(Class<?> clazz, Class<? extends Annotation> annotation) {
|
||||
public static Method[] getMethodsByAnnoInPOJOClass(Class<?> clazz, Class<? extends Annotation> annotation) {
|
||||
var list = new ArrayList<Method>();
|
||||
var methods = getAllMethods(clazz);
|
||||
var methods = clazz.getDeclaredMethods();
|
||||
for (var method : methods) {
|
||||
if (method.isAnnotationPresent(annotation)) {
|
||||
list.add(method);
|
||||
|
||||
Reference in new issue
Block a user