Skip to content

Commit

Permalink
remove: 사용하지 않는 메서드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Songusika committed Sep 26, 2023
1 parent b65c405 commit cfc9f90
Showing 1 changed file with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,4 @@ public static Map<Class<?>, List<Method>> getMethodHasAnnotationWith(
public static <T extends Annotation> T getMethodAnnotation(final Method method, final Class<T> type) {
return method.getDeclaredAnnotation(type);
}

public Optional<? extends Class<?>> getMethodParameterAnnotatedWith(
final Class<? extends Annotation> annotation,
final Method method
) {
return Arrays.stream(method.getParameters())
.filter(it -> it.isAnnotationPresent(annotation))
.map(Parameter::getType)
.findFirst();
}
}

0 comments on commit cfc9f90

Please sign in to comment.