diff --git a/java/src/main/java/cucumber/runtime/java/MethodScanner.java b/java/src/main/java/cucumber/runtime/java/MethodScanner.java
index <HASH>..<HASH> 100644
--- a/java/src/main/java/cucumber/runtime/java/MethodScanner.java
+++ b/java/src/main/java/cucumber/runtime/java/MethodScanner.java
@@ -77,7 +77,14 @@ class MethodScanner {
 
     private boolean isHookAnnotation(Annotation annotation) {
         Class<? extends Annotation> annotationClass = annotation.annotationType();
-        return annotationClass.equals(Before.class) || annotationClass.equals(After.class) || annotationClass.equals(BeforeStep.class) || annotationClass.equals(AfterStep.class);
+        return annotationClass.equals(Before.class)
+            || annotationClass.equals(After.class)
+            || annotationClass.equals(BeforeStep.class)
+            || annotationClass.equals(AfterStep.class)
+            || annotationClass.equals(io.cucumber.java.Before.class)
+            || annotationClass.equals(io.cucumber.java.After.class)
+            || annotationClass.equals(io.cucumber.java.BeforeStep.class)
+            || annotationClass.equals(io.cucumber.java.AfterStep.class);
     }
 
     private boolean isStepdefAnnotation(Annotation annotation) {
[Java] Detect new hook annotations