I have a java.lang.reflect.Method method and I want to check if it is marked with @Override annotation.
Was trying to do that with method.isAnnotationPresent(Override.class) but this approach doesn't applicable for this annotation. Also tried MergedAnnotations.from(method).isPresent() but it also doesn't return true for my method with @Override.
Is it possible to check that?
Aucun commentaire:
Enregistrer un commentaire