Code polish

This commit is contained in:
nathan 2020-06-19 16:08:22 +02:00
parent c73ba03d63
commit 06aeb876eb

View File

@ -63,13 +63,14 @@ class ReflectionUtils {
/** /**
* Get methods annotated with the specified annotation. * Get methods annotated with the specified annotation.
* *
* @param target * @param target the class that you are looking for the methods on
* @param annotationClass * @param annotationClass the annotations that define the method you are looking for
* @param <A> * @param <A> the annotation type
* @return *
* @return the array of methods that match the target + annotation
*/ */
public static public static
<A extends Annotation> Method[] getMethods(Class<?> target, Class<A> annotationClass) { <A extends Annotation> Method[] getMethods(Class<?> target, Class<A> annotationClass) {
ArrayList<Method> methods = new ArrayList<Method>(); ArrayList<Method> methods = new ArrayList<Method>();
getMethods(target, annotationClass, methods); getMethods(target, annotationClass, methods);