package test; class Simple { @MyAnnotation void myMethod() { // do nothing } } @interface MyAnnotation { }