diff --git a/README.md b/README.md index 06933b7af46..d33464218a1 100644 --- a/README.md +++ b/README.md @@ -199,8 +199,8 @@ public class TimerAgent { builder.method(ElementMatchers.any()) .intercept(MethodDelegation.to(TimingInterceptor.class)) ).installOn(instrumentation); - } } +} ``` Similar to Java's `main` method, the `premain` method is the entry point to any Java agent from which we apply the redefinition. As one argument, a Java agent receives an instace of the `Instrumentation` interface which allows Byte Buddy to hook into the JVM's standard API for runtime class redefinition.